From a86b81d12e5db1cab5de8a568da454deeb8a74d7 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 8 May 2018 16:08:24 -0400 Subject: [PATCH] Only set term_sent_at if we don't already have one, we may send the stop signal many times --- scripts/zmdc.pl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/zmdc.pl.in b/scripts/zmdc.pl.in index f182a5f68..ecf6bf7fe 100644 --- a/scripts/zmdc.pl.in +++ b/scripts/zmdc.pl.in @@ -537,7 +537,7 @@ sub send_stop { ."\n" ); $process->{keepalive} = !$final; - $process->{term_sent_at} = time; + $process->{term_sent_at} = time if ! $process->{term_sent_at}; $process->{pending} = 0; $terminating_processes{$command} = $process;