Message108992
| 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:32 | zarkdav | set | recipients:
+ zarkdav, exarkun, docs@python |
| 2010年06月30日 15:59:32 | zarkdav | set | messageid: <1277913572.34.0.974747400231.issue9127@psf.upfronthosting.co.za> |
| 2010年06月30日 15:59:28 | zarkdav | link | issue9127 messages |
| 2010年06月30日 15:59:27 | zarkdav | create |
|