From e8e88ed2084faeba7858f54c310e333b60513ed5 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 10 Jun 2013 14:13:35 +0200 Subject: Flush stream after writing service messages sys.stdout is buffered by default if redirected to a file. This may causes automated installation to appear hung. Flush the stream so that messages are written immediately. --- ipaserver/install/service.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ipaserver/install/service.py b/ipaserver/install/service.py index f3cd1897f..4a244abb9 100644 --- a/ipaserver/install/service.py +++ b/ipaserver/install/service.py @@ -55,6 +55,7 @@ def print_msg(message, output_fd=sys.stdout): root_logger.debug(message) output_fd.write(message) output_fd.write("\n") + output_fd.flush() class Service(object): -- cgit