summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-11-14 01:54:41 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-03-06 04:52:35 +0100
commit8e6dae89e43decdb2a7db182699fc916d707cb27 (patch)
treea2a5e2af399c77035095ddab8d1193a193134f9e
parente9b094075b5bbaf6a4261742b8a9ef5c92e9481d (diff)
downloadbcfg2-8e6dae89e43decdb2a7db182699fc916d707cb27.tar.gz
bcfg2-8e6dae89e43decdb2a7db182699fc916d707cb27.tar.bz2
bcfg2-8e6dae89e43decdb2a7db182699fc916d707cb27.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.
-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()