From 4fed6bdf7360b3f9d3ea4832973c398aa387f0a8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 26 Aug 2010 14:49:34 -0700 Subject: Ensure SystemExit is never caught. --- pym/portage/process.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pym/portage/process.py') 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 -- cgit v1.2.3-1-g7c22