From 81df6e406bdd36eb88b64f1f1118e6b659ab82a2 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 20 Aug 2016 18:31:21 +0200 Subject: [PATCH] webbuild-*.cgi: unbuffered stdbuf --- cgi-bin/webbuild-buildvm01.cgi | 4 ++-- cgi-bin/webbuild-buildvm02.cgi | 4 ++-- cgi-bin/webbuild-webbuild-arm.cgi | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cgi-bin/webbuild-buildvm01.cgi b/cgi-bin/webbuild-buildvm01.cgi index 61a875e..bcf7f7c 100755 --- a/cgi-bin/webbuild-buildvm01.cgi +++ b/cgi-bin/webbuild-buildvm01.cgi @@ -7,7 +7,7 @@ if [ "$QUERY_STRING" ]; then $contentdisposition Content-Type: application/octet-stream " - stdbuf -oL curl -4 --connect-timeout 20 "http://$WEBBUILD_HOST/cgi-bin/webbuild?$QUERY_STRING" -H "Content-Type: $CONTENT_TYPE" + stdbuf -o0 curl -4 --connect-timeout 20 "http://$WEBBUILD_HOST/cgi-bin/webbuild?$QUERY_STRING" -H "Content-Type: $CONTENT_TYPE" else echo "\ Content-Type: text/xml @@ -15,5 +15,5 @@ Pragma: no-cache " - stdbuf -oL curl -4 --connect-timeout 20 "http://$WEBBUILD_HOST/cgi-bin/webbuild" -H "Content-Type: $CONTENT_TYPE" --data-binary @- --stderr /dev/null + stdbuf -o0 curl -4 --connect-timeout 20 "http://$WEBBUILD_HOST/cgi-bin/webbuild" -H "Content-Type: $CONTENT_TYPE" --data-binary @- --stderr /dev/null fi diff --git a/cgi-bin/webbuild-buildvm02.cgi b/cgi-bin/webbuild-buildvm02.cgi index bcba0bd..d7c98a6 100755 --- a/cgi-bin/webbuild-buildvm02.cgi +++ b/cgi-bin/webbuild-buildvm02.cgi @@ -7,7 +7,7 @@ if [ "$QUERY_STRING" ]; then $contentdisposition Content-Type: application/octet-stream " - stdbuf -oL curl -4 --connect-timeout 20 "http://$WEBBUILD_HOST/cgi-bin/webbuild?$QUERY_STRING" -H "Content-Type: $CONTENT_TYPE" + stdbuf -o0 curl -4 --connect-timeout 20 "http://$WEBBUILD_HOST/cgi-bin/webbuild?$QUERY_STRING" -H "Content-Type: $CONTENT_TYPE" else echo "\ Content-Type: text/xml @@ -15,5 +15,5 @@ Pragma: no-cache " - stdbuf -oL curl -4 --connect-timeout 20 "http://$WEBBUILD_HOST/cgi-bin/webbuild" -H "Content-Type: $CONTENT_TYPE" --data-binary @- --stderr /dev/null + stdbuf -o0 curl -4 --connect-timeout 20 "http://$WEBBUILD_HOST/cgi-bin/webbuild" -H "Content-Type: $CONTENT_TYPE" --data-binary @- --stderr /dev/null fi diff --git a/cgi-bin/webbuild-webbuild-arm.cgi b/cgi-bin/webbuild-webbuild-arm.cgi index d48f941..53a401b 100755 --- a/cgi-bin/webbuild-webbuild-arm.cgi +++ b/cgi-bin/webbuild-webbuild-arm.cgi @@ -7,7 +7,7 @@ if [ "$QUERY_STRING" ]; then $contentdisposition Content-Type: application/octet-stream " - stdbuf -oL curl -4 --connect-timeout 40 "http://$WEBBUILD_HOST/cgi-bin/webbuild?$QUERY_STRING" -H "Content-Type: $CONTENT_TYPE" + stdbuf -o0 curl -4 --connect-timeout 40 "http://$WEBBUILD_HOST/cgi-bin/webbuild?$QUERY_STRING" -H "Content-Type: $CONTENT_TYPE" else echo "\ Content-Type: text/xml @@ -15,5 +15,5 @@ Pragma: no-cache " - stdbuf -oL curl -4 --connect-timeout 40 "http://$WEBBUILD_HOST/cgi-bin/webbuild" -H "Content-Type: $CONTENT_TYPE" --data-binary @- --stderr /dev/null + stdbuf -o0 curl -4 --connect-timeout 40 "http://$WEBBUILD_HOST/cgi-bin/webbuild" -H "Content-Type: $CONTENT_TYPE" --data-binary @- --stderr /dev/null fi