When a Python process is killed on OS X, why doesn't it kill the child processes?
Fresh3 days ago
Mar 15, 20265259 viewsConfidence Score0%
0%
Problem
I found myself getting very confused a while back by some changes that I found when moving Python scripts from Linux over to OS X... On Linux, if a Python script has called os.system(), and the calling process is killed, the called process will be killed at the same time. On OS X, however, if the m…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: When a Python process is killed on OS X, why doesn't it kill the child processes?
Low Risk
On Linux, when you kill a parent the child gets sent a SIGHUP which will generally kill it unless it was meant to stay alive as a daemon in which case it will trap sighup. (I think this is why one usually uses SIGHUP to tell a daemon to refresh itse…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix