Skip to content
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

use pdfork instead of pid #80

Open
mheily opened this issue Jun 10, 2016 · 0 comments
Open

use pdfork instead of pid #80

mheily opened this issue Jun 10, 2016 · 0 comments

Comments

@mheily
Copy link
Owner

mheily commented Jun 10, 2016

bapt@ suggests using pdfork to avoid the race if a PID is recycled while jobd still has references to it. This might happen once we start caring about child processes of things that we kill, waiting for them to die, and then trying to kill the parent afterword. If the parent process is gone, but the PID is recycled and used by a new process, then jobd might do the wrong thing.

Linux has something similar, but it may be harder to poll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant