From fae67722f126297d9f8a4fb211f97c6e99aadd47 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Wed, 26 Jun 2013 09:35:48 -0500 Subject: bcfg2-test: Move signal handler Code was refactored such that this signal handler got put in the wrong place during the revert. Signed-off-by: Sol Jerome --- src/sbin/bcfg2-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sbin') diff --git a/src/sbin/bcfg2-test b/src/sbin/bcfg2-test index d32df5cfb..d7a1894f0 100755 --- a/src/sbin/bcfg2-test +++ b/src/sbin/bcfg2-test @@ -235,7 +235,6 @@ def parse_args(): logger.warning("Python multiprocessing library not found, running " "with no children") setup['children'] = 0 - signal.signal(signal.SIGINT, get_sigint_handler(core)) if (setup['children'] and ('--with-xunit' in setup['noseopts'] or '--xunit-file' in setup['noseopts'])): @@ -262,6 +261,7 @@ def main(): setup = parse_args() logger = logging.getLogger(sys.argv[0]) core = get_core(setup) + signal.signal(signal.SIGINT, get_sigint_handler(core)) if setup['args']: clients = setup['args'] -- cgit v1.2.3-1-g7c22