-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
provide a way for kill(p) to kill the whole process group #18146
Comments
Hmm, it seems like (a) the process group includes Julia itself (i.e. on Unix there isn't one process group created per So maybe there's not much we can do here, since the creation of process groups is under libuv's control? |
feature freeze is soon and no one has started working on this, moving to 1.0 |
Not sure that this is even possible/desirable (see my comment above), so closing this unless the feature can be better defined. |
Seems like you might be able to give it ( |
Currently,
kill(p)
signals only a single process. However,spawn(detach(...))
creates a new process group, and killing the parent process does not necessarily kill the child processes.I raninto this problem in IJulia, because on MacOS
p = spawn(detach(
ipython notebook))
spawns abash
script that in turn spawns the actualpython
server, and doingkill(p)
only kills the parentbash
process and not the underlyingpython
server, which is then orphaned.(In fact, I would have thought that the default of
kill
should have been to kill the whole process group.)I don't see anything in
libuv
to provide this. I guess you would have to callgetpgrp
on the process id to get the group id to kill?The text was updated successfully, but these errors were encountered: