summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-11-14 01:54:41 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-30 01:29:29 +0100
commit801ffae02f40ba5f95f6b6c7b2fdf83dd5a46e14 (patch)
tree1fb8dd37092a20ebc3edb67ee82b8dc9615c5652 /src
parentd7a03dd1998baa4dfc56233298004b14168b143f (diff)
downloadbcfg2-801ffae02f40ba5f95f6b6c7b2fdf83dd5a46e14.tar.gz
bcfg2-801ffae02f40ba5f95f6b6c7b2fdf83dd5a46e14.tar.bz2
bcfg2-801ffae02f40ba5f95f6b6c7b2fdf83dd5a46e14.zip
bcfg2-info: flush output buffer before exit
The process should not use os._exit to terminate. This does not flush the output buffers and causes that the output does not appear, if stdout is piped away.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-info2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index 656532155..f3f373deb 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -562,7 +562,7 @@ class infoCore(cmd.Cmd, Bcfg2.Server.Core.Core):
"""."""
if args:
self.onecmd(" ".join(args))
- os._exit(0)
+ sys.exit(0)
else:
self.do_loop()