[issue2113] Bad interaction between signal and subprocess
report at bugs.python.org
Thu Feb 14 16:39:03 CET 2008
New submission from Daniele Varrazzo:
During Popen.communicate(), if a signal is caught during the select(),
an unhandled exception is raised, and the output gathered is lost.
This means that a long running or hanged process can't be killed after a
timeout (as shown in the attached example, where the output collected
before the signal is valuable)
The bug happens only when stdout and stderr are not merged and is tested
on linux platform.
title: Bad interaction between signal and subprocess
versions: Python 2.5
Added file: http://bugs.python.org/file9431/subprocess_signal_bug.py
Tracker <report at bugs.python.org>
More information about the Python-bugs-list