mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 08:42:42 +01:00
Trap handler
This commit is contained in:
1 parent
8bd47994b6
commit
fd65d5b31d
1 file changed
+1
-1
+1
-1
@@ -3,7 +3,7 @@ set -eu
|
||||
|
||||
stop() {
|
||||
trap - SIGINT EXIT
|
||||
{ pkill -f nc || true } 2>/dev/null
|
||||
{ pkill -f nc || true; } 2>/dev/null
|
||||
}
|
||||
|
||||
trap 'stop' EXIT SIGINT SIGTERM SIGHUP
|
||||
|
||||
Reference in new issue
Block a user