mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Use EXIT pseudo-signal
This commit is contained in:
parent
7f2d0c0f71
commit
bf42ea26d5
@ -150,6 +150,6 @@ cleanup()
|
|||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
trap cleanup EXIT SIGINT
|
trap cleanup EXIT
|
||||||
|
|
||||||
while true; do read x; done
|
while true; do read x; done
|
||||||
|
@ -33,7 +33,7 @@ cleanup() {
|
|||||||
"${KUBE_ROOT}/hack/build-go.sh" "$@" cmd/integration
|
"${KUBE_ROOT}/hack/build-go.sh" "$@" cmd/integration
|
||||||
|
|
||||||
# Run cleanup to stop etcd on interrupt or other kill signal.
|
# Run cleanup to stop etcd on interrupt or other kill signal.
|
||||||
trap cleanup HUP INT QUIT TERM
|
trap cleanup EXIT
|
||||||
|
|
||||||
kube::etcd::start
|
kube::etcd::start
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user