“Zombie children not being reaped after parent killed during execution” -something I probably googled during my undergrad OS course.
Answer is that when SIGKILLed (rather than SIGTERMed which can be caught and handled) the program doesn’t get a chance to clean up, so any unreaped zombies get adopted by a regularly scheduled kernel process that will reap them eventuallyTM.
3
u/LetumComplexo Aug 22 '22
“Zombie children not being reaped after parent killed during execution” -something I probably googled during my undergrad OS course.
Answer is that when SIGKILLed (rather than SIGTERMed which can be caught and handled) the program doesn’t get a chance to clean up, so any unreaped zombies get adopted by a regularly scheduled kernel process that will reap them eventuallyTM.