You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently had to ensure that a spawned tail -f command exited along with the main julia process. I found one way was to define a finalizer on the process object thus - finalizer(proc, (x)->kill(x)) . If this is reliable and guaranteed to work cross-platform, I'll document the same.
afaict, the system only delivers SIGHUP if the child process is sleeping (http://pubs.opengroup.org/onlinepubs/9699919799/functions/_Exit.html). i've confirmed this (so some extent) by sending SIGSTOP or SIGTSTP to the child process and observing that it then does exit in response to the parent dying.
If I start a child julia process like this:
and exit the parent process, the child continues to run.
I thought
detach
was meant to be used when we wanted the child process to outlive the parent, andrun
was expected to behave otherwise.Is there a portable way to have children as part of a new process group so that all children receive a SIGHUP when the parent exits?
The text was updated successfully, but these errors were encountered: