From f752b3077a3f3eb6f2d55462077a2c780304126e Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 23 Apr 2018 11:16:24 -0400 Subject: [PATCH] add the # of seconds before kill to the log line --- scripts/zmdc.pl.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/zmdc.pl.in b/scripts/zmdc.pl.in index f1b7171a1..4b58e2b19 100644 --- a/scripts/zmdc.pl.in +++ b/scripts/zmdc.pl.in @@ -528,9 +528,10 @@ sub kill_until_dead { sigprocmask(SIG_BLOCK, $blockset, $sigset ) or die "dying at block...\n"; while( $process and $$process{pid} and kill( 0, $$process{pid} ) ) { if ( $count++ > 10 ) { - dPrint( ZoneMinder::Logger::WARNING, "'$$process{command}' has not stopped at " - .strftime( '%y/%m/%d %H:%M:%S', localtime() ) - .". Sending KILL to pid $$process{pid}\n" + dPrint(ZoneMinder::Logger::WARNING, "'$$process{command}' has not stopped at " + .strftime('%y/%m/%d %H:%M:%S', localtime()) + .' after ' . ( KILL_DELAY * $count ) . ' seconds.' + ." Sending KILL to pid $$process{pid}\n" ); kill( 'KILL', $$process{pid} ); last;