diff options
Diffstat (limited to 'check.php')
-rwxr-xr-x | check.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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"); |