summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcheck.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/check.php b/check.php
index 5f52566..2a8a7cc 100755
--- a/check.php
+++ b/check.php
@@ -217,7 +217,9 @@ if ($ref) {
if ($cli) {
$nb=count($pids);
while (count($pids)) {
- printf("Wait %d\r", count($pids));
+ if (posix_isatty(STDOUT)) {
+ printf("Wait %d\r", count($pids));
+ }
$pid = pcntl_wait($status);
if ($pid<0) {
die("Cound not wait\n");