Forking python, defunct child
问题 I have some troubles with Python child processes so I wrote a very simple script: import os import sys import time pid = os.fork() if pid: #parent time.sleep(30) else: #child #os._exit(0) sys.exit() While parent process is sleeping I launch ps fax | grep py[t]hon And I read this output 2577 ? S 0:00 python /home/pi/python/GPIO/GPIODaemon.py restart 2583 ? Z 0:00 \_ [python] <defunct> Using sys.exit() or os._exit(0) there is always a Zombie process and I'm unable to understand why. Working on