[New-bugs-announce] [issue2113] Bad interaction between signal and subprocess

Daniele Varrazzo 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.

files: subprocess_signal_bug.py
messages: 62392
nosy: piro
severity: normal
status: open
title: Bad interaction between signal and subprocess
type: crash
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 New-bugs-announce mailing list