summaryrefslogtreecommitdiffstats
path: root/check.php
diff options
context:
space:
mode:
Diffstat (limited to 'check.php')
-rwxr-xr-xcheck.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/check.php b/check.php
index 5f525661..2a8a7cc9 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");