From 801ffae02f40ba5f95f6b6c7b2fdf83dd5a46e14 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 14 Nov 2012 01:54:41 +0100 Subject: 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. --- src/sbin/bcfg2-info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3-1-g7c22