diff options
| author | Alan Conway <aconway@apache.org> | 2008-01-23 20:23:56 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-01-23 20:23:56 +0000 |
| commit | a3e8e5042d5b56e98b65bf97a63c069cab907243 (patch) | |
| tree | 1dac9da4c53839bac77c2ec95b483247415c1a12 /cpp/examples | |
| parent | b0cb6cc6bdbbbfdc20567661fd1f52439a2a3c29 (diff) | |
| download | qpid-python-a3e8e5042d5b56e98b65bf97a63c069cab907243.tar.gz | |
verify: kill any stray child processes on exit.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@614648 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples')
| -rwxr-xr-x | cpp/examples/verify | 3 |
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; } |
