diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2013-06-26 09:35:48 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2013-06-26 09:35:48 -0500 |
commit | fae67722f126297d9f8a4fb211f97c6e99aadd47 (patch) | |
tree | 49de64702cd858f311239a33e12672fbffac3aec | |
parent | b44c1e2972a3841b0a2b9198797ba42caddc97d4 (diff) | |
download | bcfg2-fae67722f126297d9f8a4fb211f97c6e99aadd47.tar.gz bcfg2-fae67722f126297d9f8a4fb211f97c6e99aadd47.tar.bz2 bcfg2-fae67722f126297d9f8a4fb211f97c6e99aadd47.zip |
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 <sol.jerome@gmail.com>
-rwxr-xr-x | src/sbin/bcfg2-test | 2 |
1 files changed, 1 insertions, 1 deletions
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'] |