Author c-lewin
Recipients Justin.Lebar, asvetlov, c-lewin, yselivanov
Date 2020-04-19.03:14:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Very first time engaging in such a forum. Apologies is advance if I am doing it wrong!

Observation: ps -ef shows "Defunct" process until calling script terminates

Scenario: equivalent test scripts in BASH, Python 2.7 and 3.6 that:
1. Start a ping
2. SIGTERM (kill -15) the associated PID 
3. wait for a user input (hence stopping the script terminating)

I tried P.Open and threading but behaviour is same.

BASH script does not show any "defunct" process.

Is this "Child Reaping" the cause of this observed behaviour?

Problem comes when the Parent script is required to run constantly (server type scenario) as the "defunct" processes will presumably eventually consume all system resources?
Date User Action Args
2020-04-19 03:14:10c-lewinsetrecipients: + c-lewin, asvetlov, Justin.Lebar, yselivanov
2020-04-19 03:14:10c-lewinsetmessageid: <>
2020-04-19 03:14:10c-lewinlinkissue40078 messages
2020-04-19 03:14:09c-lewincreate