Message122556
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()
james@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. |
|
Date |
User |
Action |
Args |
2010-11-27 20:54:02 | jlamanna | set | recipients:
+ jlamanna, nnorwitz, collinwinter, abo, gregory.p.smith, astrand, siemer, exarkun, gjb1002, oefe, giampaolo.rodola, christian.heimes, dsagal, jyasskin, tom_culliton, benjamin.peterson, djc, grossetti, r.david.murray, yonas, jonash, flox, kanaka, santoni, shaphiro |
2010-11-27 20:54:02 | jlamanna | set | messageid: <1290891242.1.0.899994310007.issue1731717@psf.upfronthosting.co.za> |
2010-11-27 20:54:00 | jlamanna | link | issue1731717 messages |
2010-11-27 20:54:00 | jlamanna | create | |
|