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 zarkdav
Recipients docs@python, exarkun, zarkdav
Date 2010-06-30.15:59:27
SpamBayes Score 7.1518846e-11
Marked as misclassified No
Message-id <1277913572.34.0.974747400231.issue9127@psf.upfronthosting.co.za>
In-reply-to
Content
Content of the above pastie:

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import signal
>>> import subprocess
>>> signal.signal(signal.SIGCHLD,signal.SIG_IGN)
0
>>> subprocess.Popen(["echo","blah"], stdout=subprocess.PIPE).communicate()[0]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/subprocess.py", line 698, in communicate
    self.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
>>> oldsignal = signal.signal(signal.SIGCHLD,signal.SIG_DFL)
>>> subprocess.Popen(["echo","blah"], stdout=subprocess.PIPE).communicate()[0]
'blah\n'
>>> signal.signal(signal.SIGCHLD,oldsignal)
0
History
Date User Action Args
2010-06-30 15:59:32zarkdavsetrecipients: + zarkdav, exarkun, docs@python
2010-06-30 15:59:32zarkdavsetmessageid: <1277913572.34.0.974747400231.issue9127@psf.upfronthosting.co.za>
2010-06-30 15:59:28zarkdavlinkissue9127 messages
2010-06-30 15:59:27zarkdavcreate