diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-01-31 20:33:48 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-02-02 15:26:48 -0800 |
commit | f5c551e10d28855266f8e5d6beccf8a52d2e8417 (patch) | |
tree | 7d750583ac2a1255d7a02d679311e58009d74324 | |
parent | 17baff00d4421b8057758f7174287bd4e88d8baf (diff) | |
download | portage-f5c551e10d28855266f8e5d6beccf8a52d2e8417.tar.gz portage-f5c551e10d28855266f8e5d6beccf8a52d2e8417.tar.bz2 portage-f5c551e10d28855266f8e5d6beccf8a52d2e8417.zip |
EbuildFetcher: use default SIGINT/TERM handlers
This seems to fix bug #353239.
-rw-r--r-- | pym/_emerge/EbuildFetcher.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/_emerge/EbuildFetcher.py b/pym/_emerge/EbuildFetcher.py index d19307806..eb27647d1 100644 --- a/pym/_emerge/EbuildFetcher.py +++ b/pym/_emerge/EbuildFetcher.py @@ -5,6 +5,7 @@ import traceback from _emerge.SpawnProcess import SpawnProcess import copy +import signal import sys import portage from portage import os @@ -95,6 +96,11 @@ class EbuildFetcher(SpawnProcess): portage.process._setup_pipes(fd_pipes) + # Use default signal handlers in order to avoid problems + # killing subprocesses as reported in bug #353239. + signal.signal(signal.SIGINT, signal.SIG_DFL) + signal.signal(signal.SIGTERM, signal.SIG_DFL) + # Force consistent color output, in case we are capturing fetch # output through a normal pipe due to unavailability of ptys. portage.output.havecolor = self._settings.get('NOCOLOR') \ |