projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c04225d
)
_exec: use default SIGINT/TERM handlers
author
Zac Medico
<zmedico@gentoo.org>
Tue, 1 Feb 2011 04:47:57 +0000
(20:47 -0800)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 1 Feb 2011 04:47:57 +0000
(20:47 -0800)
Avoid issues like bug #353239.
pym/portage/process.py
patch
|
blob
|
history
diff --git
a/pym/portage/process.py
b/pym/portage/process.py
index 00fe4a5eb2ee6c0cc5c4fbb26a179faa0f3688e3..3c1537074f7440153632ecc8cc46c66a94a9cc69 100644
(file)
--- 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)