-
Notifications
You must be signed in to change notification settings - Fork 3
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
Install a SIGCHLD handler, and allow wait() and also getting the exit code #5
Comments
Of course this is only for Unix. I don't know how you would do this on Windows.... |
Btw. you definitely need a SIGCHLD handler, because currently |
Related to this, I would like to have the exit status of the background process as well, without waiting on it, of course. On Unix the SIGCHLD signal handler can get the exit status, and there is also a way to get it on Windows. But where should |
Another, slightly hackier solution is to return the pid, but add some attribute that will be essentially the handle. It should be an external pointer, so that it has reference semantics. Personally I think that just having a new function that returns a handle is cleaner. |
Just tell me which one to implement, and then I'll do it. :) |
Sorry I got silent, it was late. Reviewing now. |
In sys we temporarily block SIGCHLD for blocking calls, which ensures there are no side effects. Users that want more control should switch to |
The SIGCHLD handler will be incompatible with the
parallel
package, which just removes the old handler and installs a new one. So ideally,parallel
needs a fix, too.The text was updated successfully, but these errors were encountered: