mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-14 21:10:11 +01:00
iopupgrade: Kill the watchdog only if it has been started.
This commit is contained in:
parent
42c0e1ecc8
commit
b376a0b16a
1 changed files with 4 additions and 1 deletions
|
|
@ -67,7 +67,10 @@ function finish {
|
|||
fi
|
||||
# always kill the timeout process, will leave the sleep but that is harmless
|
||||
# as long as the kill will nerver be run.
|
||||
kill $TIMEOUT_PID 2>/dev/null
|
||||
if [ -n "$TIMEOUT_PID" ]; then
|
||||
kill $TIMEOUT_PID 2>/dev/null
|
||||
TIMEOUT_PID=""
|
||||
fi
|
||||
|
||||
lock -u /tmp/iopu.lock
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue