From 82337b4343a1ff74d5c510e29f7b767867fd1d21 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 1 Feb 2014 15:00:21 +0100 Subject: [PATCH] webbuild-functions-private: use stdbuf to prevent buffering in processtail --- webbuild/webbuild-functions-private | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webbuild/webbuild-functions-private b/webbuild/webbuild-functions-private index e857ee2..6025b23 100644 --- a/webbuild/webbuild-functions-private +++ b/webbuild/webbuild-functions-private @@ -51,7 +51,7 @@ function showlog() { echo -n "
"
       if [ "$LOGTYPE" = "processtail" ]; then
          echo -n ""
-         tail -n +0 -f $f --pid $PROCESSPID | sed "s|<|\<|g"
+         tail -n +0 -f $f --pid $PROCESSPID | stdbuf -oL sed "s|<|\<|g"
          echo -n ""
       else
          if [ $LOGFILESIZE -lt 524288 ]; then