diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-12-23 11:40:55 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-12-28 13:52:59 -0800 |
commit | 81f83898ce768ac9daf0d50a1bc9deece839d805 (patch) | |
tree | 6262113eafb12466971a336d748bafb29499973c | |
parent | a582c1c5d92cdc0c1bcb1d490a7e5193aaa0de7c (diff) | |
download | portage-81f83898ce768ac9daf0d50a1bc9deece839d805.tar.gz portage-81f83898ce768ac9daf0d50a1bc9deece839d805.tar.bz2 portage-81f83898ce768ac9daf0d50a1bc9deece839d805.zip |
_exec: disable SIGQUIT handler override by parent
This will fix bug #289486.
-rw-r--r-- | pym/portage/process.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/process.py b/pym/portage/process.py index 3809ed8a0..00fe4a5eb 100644 --- a/pym/portage/process.py +++ b/pym/portage/process.py @@ -352,6 +352,10 @@ def _exec(binary, mycommand, opt_name, fd_pipes, env, gid, groups, uid, umask, # Quiet killing of subprocesses by SIGPIPE (see bug #309001). signal.signal(signal.SIGPIPE, signal.SIG_DFL) + # Avoid issues triggered by inheritance of SIGQUIT handler from + # the parent process (see bug #289486). + signal.signal(signal.SIGQUIT, signal.SIG_DFL) + _setup_pipes(fd_pipes) # Set requested process permissions. |