From 523847c25741838a7c0f6c1fedd6a29a9ecd6936 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 27 Nov 2019 09:58:03 +0100 Subject: avoid flood in cron --- check.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); -- cgit