From bf42ea26d5539add193cf3a90f3da8fb6ec9c6eb Mon Sep 17 00:00:00 2001 From: Deyuan Deng Date: Mon, 8 Dec 2014 19:42:47 -0500 Subject: [PATCH] Use EXIT pseudo-signal --- hack/local-up-cluster.sh | 2 +- hack/test-integration.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index e7b761b393f..556ad6f8e7c 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -150,6 +150,6 @@ cleanup() exit 0 } -trap cleanup EXIT SIGINT +trap cleanup EXIT while true; do read x; done diff --git a/hack/test-integration.sh b/hack/test-integration.sh index fcf04645f77..58df43b06de 100755 --- a/hack/test-integration.sh +++ b/hack/test-integration.sh @@ -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