Author: aconway
Date: Wed Jan 23 12:23:56 2008
New Revision: 614648

URL: http://svn.apache.org/viewvc?rev=614648&view=rev
Log:

verify: kill any stray child processes on exit.

Modified:
    incubator/qpid/trunk/qpid/cpp/examples/verify

Modified: incubator/qpid/trunk/qpid/cpp/examples/verify
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/examples/verify?rev=614648&r1=614647&r2=614648&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/examples/verify (original)
+++ incubator/qpid/trunk/qpid/cpp/examples/verify Wed Jan 23 12:23:56 2008
@@ -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; }


Reply via email to