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>" echo -n "<pre>"
if [ "$LOGTYPE" = "processtail" ]; then if [ "$LOGTYPE" = "processtail" ]; then
echo -n "<!-- SCROLL -->" 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 -->" echo -n "<!-- ENDSCROLL -->"
else else
if [ $LOGFILESIZE -lt 524288 ]; then if [ $LOGFILESIZE -lt 524288 ]; then