diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2010-09-30 02:59:39 +0000 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2010-10-07 17:14:52 -0500 |
commit | 1dbff5b7879936243d793541886dbfbab38bb3a1 (patch) | |
tree | 79e4cb098f7dde32b67e13948fb731a50ca1e825 | |
parent | 3c984f8e6e2eec4d9621633fe3902a556642e7b5 (diff) | |
download | bcfg2-1dbff5b7879936243d793541886dbfbab38bb3a1.tar.gz bcfg2-1dbff5b7879936243d793541886dbfbab38bb3a1.tar.bz2 bcfg2-1dbff5b7879936243d793541886dbfbab38bb3a1.zip |
bcfg2-admin: explicitly shutdown the core at exit. fixes thread hangs.
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6084 ce84e21b-d406-0410-9b95-82705330c041
-rwxr-xr-x | src/sbin/bcfg2-admin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin index 5884ff208..872ecef0f 100755 --- a/src/sbin/bcfg2-admin +++ b/src/sbin/bcfg2-admin @@ -68,6 +68,8 @@ def main(): raise SystemExit(1) mode = mode_cls(options.configfile) mode(args[1:]) + if hasattr(mode, 'bcore'): + mode.bcore.shutdown() else: log.error("Unknown mode %s" % args[0]) parser.print_help() |