James Lamanna <[email protected]> added the comment:
stubbing out subprocess._cleanup does not work around the problem from this
example on 2.6.5:
import subprocess, signal
subprocess._cleanup = lambda: None
signal.signal(signal.SIGCLD, signal.SIG_IGN)
subprocess.Popen(['echo','foo']).wait()
ja...@hyla:~$ python tt.py
foo
Traceback (most recent call last):
File "tt.py", line 5, in <module>
subprocess.Popen(['echo','foo']).wait()
File "/usr/lib/python2.6/subprocess.py", line 1170, in wait
pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
File "/usr/lib/python2.6/subprocess.py", line 465, in _eintr_retry_call
return func(*args)
OSError: [Errno 10] No child processes
This bug still prevents subprocess from being used inside of a daemon where
SIGCLD is being caught to reap zombie processes.
----------
nosy: +jlamanna
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue1731717>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com