From d8b65da11f043fa928df6438d3a8fdf7e5e55819 Mon Sep 17 00:00:00 2001 From: Ronny Nilsson Date: Wed, 4 Dec 2019 15:10:48 +0100 Subject: [PATCH] iopupgrade: Make the watchdog send an alarm only if it fully times out. --- iopupgrade/files/sbin/iopu | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/iopupgrade/files/sbin/iopu b/iopupgrade/files/sbin/iopu index 3670d4534..2ad42b5b4 100755 --- a/iopupgrade/files/sbin/iopu +++ b/iopupgrade/files/sbin/iopu @@ -226,8 +226,7 @@ done # put a timeout on this if it takes longer than 120 seconds we should abort # and clean up ( -sleep 120 # if 2 minutes pass -kill -ALRM $$ 2>/dev/null # send it a SIGALRM signal + sleep 120 && kill -ALRM $$ 2>/dev/null # send it a SIGALRM signal )& TIMEOUT_PID=$!