Use EXIT pseudo-signal

pull/6/head
Deyuan Deng 2014-12-08 19:42:47 -05:00
parent 7f2d0c0f71
commit bf42ea26d5
2 changed files with 2 additions and 2 deletions

View File

@ -150,6 +150,6 @@ cleanup()
exit 0
}
trap cleanup EXIT SIGINT
trap cleanup EXIT
while true; do read x; done

View File

@ -33,7 +33,7 @@ cleanup() {
"${KUBE_ROOT}/hack/build-go.sh" "$@" cmd/integration
# Run cleanup to stop etcd on interrupt or other kill signal.
trap cleanup HUP INT QUIT TERM
trap cleanup EXIT
kube::etcd::start