This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jlamanna
Recipients abo, astrand, benjamin.peterson, christian.heimes, collinwinter, djc, dsagal, exarkun, flox, giampaolo.rodola, gjb1002, gregory.p.smith, grossetti, jlamanna, jonash, jyasskin, kanaka, nnorwitz, oefe, r.david.murray, santoni, shaphiro, siemer, tom_culliton, yonas
Date 2010-11-27.20:54:00
SpamBayes Score 5.287294e-07
Marked as misclassified No
Message-id <1290891242.1.0.899994310007.issue1731717@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-11-27 20:54:02jlamannasetrecipients: + 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:02jlamannasetmessageid: <1290891242.1.0.899994310007.issue1731717@psf.upfronthosting.co.za>
2010-11-27 20:54:00jlamannalinkissue1731717 messages
2010-11-27 20:54:00jlamannacreate