mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-12-14 14:20:32 +08:00
Trap handler
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user