summaryrefslogtreecommitdiffstats
path: root/pym/portage/process.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-26 14:49:34 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-26 14:49:34 -0700
commit4fed6bdf7360b3f9d3ea4832973c398aa387f0a8 (patch)
tree91e866a99046740941b5bcf4a913923de4956f94 /pym/portage/process.py
parentbf9b3e70758454afa53972340abc98a248195e45 (diff)
downloadportage-4fed6bdf7360b3f9d3ea4832973c398aa387f0a8.tar.gz
portage-4fed6bdf7360b3f9d3ea4832973c398aa387f0a8.tar.bz2
portage-4fed6bdf7360b3f9d3ea4832973c398aa387f0a8.zip
Ensure SystemExit is never caught.
Diffstat (limited to 'pym/portage/process.py')
-rw-r--r--pym/portage/process.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/process.py b/pym/portage/process.py
index aed727167..66ec1edd0 100644
--- a/pym/portage/process.py
+++ b/pym/portage/process.py
@@ -246,6 +246,8 @@ def spawn(mycommand, env={}, opt_name=None, fd_pipes=None, returnpid=False,
try:
_exec(binary, mycommand, opt_name, fd_pipes,
env, gid, groups, uid, umask, pre_exec)
+ except SystemExit:
+ raise
except Exception as e:
# We need to catch _any_ exception so that it doesn't
# propogate out of this function and cause exiting