webbuild-functions-private: use stdbuf to prevent buffering in processtail

This commit is contained in:
Silvan Calarco 2014-02-01 15:00:21 +01:00
parent 9ab269e0f7
commit 82337b4343

View File

@ -51,7 +51,7 @@ function showlog() {
echo -n "<pre>"
if [ "$LOGTYPE" = "processtail" ]; then
echo -n "<!-- SCROLL -->"
tail -n +0 -f $f --pid $PROCESSPID | sed "s|<|\&lt;|g"
tail -n +0 -f $f --pid $PROCESSPID | stdbuf -oL sed "s|<|\&lt;|g"
echo -n "<!-- ENDSCROLL -->"
else
if [ $LOGFILESIZE -lt 524288 ]; then