Carl Lewin <carl.maxwell.le...@gmail.com> added the comment:
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? ---------- nosy: +c-lewin _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40078> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com