From 9e7394f9a214dbf91c509ffe432f0fe79daa86ea Mon Sep 17 00:00:00 2001 From: KOMEDA Shinji Date: Mon, 23 May 2016 20:06:08 +0900 Subject: [PATCH] We should use the mnemonic rather than a signal number. --- pgbadger | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pgbadger b/pgbadger index 8eb143e..4ba6925 100755 --- a/pgbadger +++ b/pgbadger @@ -1473,7 +1473,7 @@ if ( ($#given_log_files >= 0) && (($queue_size > 1) || ($job_per_file > 1)) ) { # Terminate the process logger foreach my $k (keys %RUNNING_PIDS) { - kill(10, $k); + kill('USR1', $k); %RUNNING_PIDS = (); } @@ -2938,7 +2938,7 @@ print STDERR "UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU ($cur_ # Inform the parent that it should stop parsing other files if ($terminate) { - kill(12, $parent_pid); + kill('USR2', $parent_pid); return $terminate; } @@ -3026,7 +3026,7 @@ print STDERR "UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU ($cur_ # Inform the parent that it should stop parsing other files if ($getout) { - kill(12, $parent_pid); + kill('USR2', $parent_pid); } # Save last line into temporary file -- 2.40.0