mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Trap handler
This commit is contained in:
parent
8bd47994b6
commit
fd65d5b31d
@ -3,7 +3,7 @@ set -eu
|
|||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
trap - SIGINT EXIT
|
trap - SIGINT EXIT
|
||||||
{ pkill -f nc || true } 2>/dev/null
|
{ pkill -f nc || true; } 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
trap 'stop' EXIT SIGINT SIGTERM SIGHUP
|
trap 'stop' EXIT SIGINT SIGTERM SIGHUP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user