-
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
First SIGCHLD handler (#5) #9
Conversation
Minimalistic, but it already gets rid of the zombie processes.
Forgot to refer to #5. |
Thanks. I'm not too experience with implementing signal handling. Some questions:
|
Yes, this overwrites the other It will interfere with
I am not sure what other processes might be in the same process group. But anyway, yes, Actually, I just realized that I can implement all this in another package, it does not have to be in |
RApache wraps apache2 Do you understand why the PR is failing unit tests? It seems to affect the error handling in R? https://travis-ci.org/jeroenooms/sys/builds/209904805 It would be nice to get a clean solution in sys. But the current solution does not allow you to get the exit status anymore, correct? I suppose |
Ah I see why it fails now. Currently |
Also if the purpose is only to prevent zombies at this point, perhaps we can use |
Merged via 28cb317. Still not 100% sure though this is final, seems to have a lot of side effects... |
What side effects? |
If you add a Also this excerpt from NEWS.rd makes me worried that we might be breaking other packages depend on a
Would there be some trick to mark a process when we launch it in sys, and only |
Moving this to a new issue: #10 |
Minimalistic, but it already gets rid of the zombie processes.
Currently it interferes with
parallel
's fork clusters, because neither packages keep the other's signal handler. We would need to work out some cooperative solution, which would need to go in base R, to avoid this. E.g. storing a list of handlers for the various signals and add API to R to install/uninstall them.You can merge this if you want, and then we can discuss improvements, especially about storing the exit status, so that one can query it from R.