Allow multiple refreshes
by sending multiple `HUP` kill commands to the container.
This commit is contained in:
parent
a766dfd233
commit
edd7c7dd87
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ if ! which -- "${1}"; then
|
||||||
# Wait exits immediately on signals which have traps set. Store return value and wait
|
# Wait exits immediately on signals which have traps set. Store return value and wait
|
||||||
# again for all jobs to actually complete before continuing.
|
# again for all jobs to actually complete before continuing.
|
||||||
wait $! || RETVAL=$?
|
wait $! || RETVAL=$?
|
||||||
|
while [ ${RETVAL} = 129 ] ; do
|
||||||
|
# Refressh signal HUP received. Continue waiting for signals.
|
||||||
|
wait $! || RETVAL=$?
|
||||||
|
done
|
||||||
wait
|
wait
|
||||||
exit ${RETVAL}
|
exit ${RETVAL}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue