summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2013-06-26 09:35:48 -0500
committerSol Jerome <sol.jerome@gmail.com>2013-06-26 09:35:48 -0500
commitfae67722f126297d9f8a4fb211f97c6e99aadd47 (patch)
tree49de64702cd858f311239a33e12672fbffac3aec /src
parentb44c1e2972a3841b0a2b9198797ba42caddc97d4 (diff)
downloadbcfg2-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>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-test2
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']