summaryrefslogtreecommitdiff
path: root/cpp/examples/verify
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/examples/verify')
-rwxr-xr-xcpp/examples/verify3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/examples/verify b/cpp/examples/verify
index f3596d5451..3dbb2a4521 100755
--- a/cpp/examples/verify
+++ b/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; }