mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-02 23:44:37 +01:00
iopupgrade: Make the watchdog send an alarm only if it fully times out.
This commit is contained in:
parent
3f124c31f0
commit
d8b65da11f
1 changed files with 1 additions and 2 deletions
|
|
@ -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=$!
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue