summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-01-23 20:23:56 +0000
committerAlan Conway <aconway@apache.org>2008-01-23 20:23:56 +0000
commitebc80a173a476268200f710f168afac24503bc74 (patch)
treea4ad813064c6b80d35641c8f23c929411854750a
parentb6ffa2d63ecb0e45acabaf59d2baa3fa9ea2c270 (diff)
downloadqpid-python-ebc80a173a476268200f710f168afac24503bc74.tar.gz
verify: kill any stray child processes on exit.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@614648 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xqpid/cpp/examples/verify3
1 files changed, 3 insertions, 0 deletions
diff --git a/qpid/cpp/examples/verify b/qpid/cpp/examples/verify
index f3596d5451..3dbb2a4521 100755
--- a/qpid/cpp/examples/verify
+++ b/qpid/cpp/examples/verify
@@ -6,6 +6,9 @@
DIR=$PWD
SRC=`dirname $0 | sed 's|^\([^/].*\)|'$PWD'/\1|'`/examples
+# Kill any leftover background jobs.
+trap "kill %% > /dev/null 2>&1" EXIT
+
# Start private broker if QPIDD is set.
if [ -n "$QPIDD" ] ; then
export QPID_PORT=`$QPIDD -dp0` || { echo "Cannot start $QPIDD" ; exit 1; }