1 |
commit: ed29c59f845cc1edbea630bb7e431bec8081e02d |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 1 04:47:57 2011 +0000 |
4 |
Commit: Thomas Sachau <tommy <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 1 04:47:57 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=ed29c59f |
7 |
|
8 |
_exec: use default SIGINT/TERM handlers |
9 |
|
10 |
Avoid issues like bug #353239. |
11 |
|
12 |
--- |
13 |
pym/portage/process.py | 5 +++++ |
14 |
1 files changed, 5 insertions(+), 0 deletions(-) |
15 |
|
16 |
diff --git a/pym/portage/process.py b/pym/portage/process.py |
17 |
index 00fe4a5..3c15370 100644 |
18 |
--- a/pym/portage/process.py |
19 |
+++ b/pym/portage/process.py |
20 |
@@ -349,6 +349,11 @@ def _exec(binary, mycommand, opt_name, fd_pipes, env, gid, groups, uid, umask, |
21 |
myargs = [opt_name] |
22 |
myargs.extend(mycommand[1:]) |
23 |
|
24 |
+ # Use default signal handlers in order to avoid problems |
25 |
+ # killing subprocesses as reported in bug #353239. |
26 |
+ signal.signal(signal.SIGINT, signal.SIG_DFL) |
27 |
+ signal.signal(signal.SIGTERM, signal.SIG_DFL) |
28 |
+ |
29 |
# Quiet killing of subprocesses by SIGPIPE (see bug #309001). |
30 |
signal.signal(signal.SIGPIPE, signal.SIG_DFL) |