Is there a way for a child process in Python to detect if the parent process has died?
If your Python process is running under Linux, and the prctl()
system call is exposed, you can use the answer here.
This can cause a signal to be sent to the child when the parent process dies.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With