-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSX hangs on close_io #50
Comments
Can you try to replace |
I tried changing it to this:
And the output is:
with lsof showing:
|
So is it still hanging? (in the original order of the calls) |
Yep - its hanging at the last line in that output... Calling close on that fd.. |
Then I rather don't think it is a daemons issue. Can you open a bug report for |
will do - thanks. |
Cross posting this from the delayed_job ticket: Alright, so it only occurs when rails is running in development mode. If you run But then if you killall -9 fsevent_watch (part of Rails dev mode) - it will then get past the hung IO.close and enter in into the normal run loop and start processing jobs.. |
Update - So delayed_job calls Daemons.run_proc from within an environment that already has Rails loaded and Rails doesn't seem to like having all its IO closed out from underneath it. Perhaps a cmd line option is in order to disable the close_io call within simulate? Or running without simulate at all? |
I'm using delayed_job which utilizes daemons. When I run "delayed_job run" from my application, its hanging in this block on my OSX box (but seems ok in my docker container on Ubuntu)..
If I add a print in the loop here, I get this:
which from the output of lsof is some sort of pipe.
If I change the order of the functions in close_io so that it runs the close_fd loop before the "io.close" loop, it manages to get going (albeit other things seem to break like logging)
If this isn't a daemons issue, I'm happy to open something with the delayed_job folks - Thanks..
I'm using OSX El Cap..
The text was updated successfully, but these errors were encountered: