diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-01-31 20:47:57 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-01-31 20:47:57 -0800 |
commit | ed29c59f845cc1edbea630bb7e431bec8081e02d (patch) | |
tree | c09647c5d0cecacddafe57ccdc430709f8e43157 | |
parent | c04225dddbe83ba371258ffdc4be7842ab672fff (diff) | |
download | portage-ed29c59f845cc1edbea630bb7e431bec8081e02d.tar.gz portage-ed29c59f845cc1edbea630bb7e431bec8081e02d.tar.bz2 portage-ed29c59f845cc1edbea630bb7e431bec8081e02d.zip |
_exec: use default SIGINT/TERM handlers
Avoid issues like bug #353239.
-rw-r--r-- | pym/portage/process.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/portage/process.py b/pym/portage/process.py index 00fe4a5eb..3c1537074 100644 --- a/pym/portage/process.py +++ b/pym/portage/process.py @@ -349,6 +349,11 @@ def _exec(binary, mycommand, opt_name, fd_pipes, env, gid, groups, uid, umask, myargs = [opt_name] myargs.extend(mycommand[1:]) + # 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) + # Quiet killing of subprocesses by SIGPIPE (see bug #309001). signal.signal(signal.SIGPIPE, signal.SIG_DFL) |