Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Feb 2015 01:07:13 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r278653 - head/bin/pkill/tests
Message-ID:  <201502130107.t1D17D3q021789@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Fri Feb 13 01:07:12 2015
New Revision: 278653
URL: https://svnweb.freebsd.org/changeset/base/278653

Log:
  Call wait to ensure that background processes have died
  
  This is being done to establish parity with pgrep-j_test

Modified:
  head/bin/pkill/tests/pgrep-j_test.sh

Modified: head/bin/pkill/tests/pgrep-j_test.sh
==============================================================================
--- head/bin/pkill/tests/pgrep-j_test.sh	Fri Feb 13 00:49:47 2015	(r278652)
+++ head/bin/pkill/tests/pgrep-j_test.sh	Fri Feb 13 01:07:12 2015	(r278653)
@@ -50,6 +50,7 @@ else
 fi
 [ -f ${PWD}/${base}_1_1.pid ] && kill $(cat ${PWD}/${base}_1_1.pid)
 [ -f ${PWD}/${base}_1_2.pid ] && kill $(cat ${PWD}/${base}_1_2.pid)
+wait
 
 name="pgrep -j any"
 sleep_amount=6
@@ -70,6 +71,7 @@ else
 fi
 [ -f ${PWD}/${base}_2_1.pid ] && kill $(cat ${PWD}/${base}_2_1.pid)
 [ -f ${PWD}/${base}_2_2.pid ] && kill $(cat ${PWD}/${base}_2_2.pid)
+wait
 
 name="pgrep -j none"
 sleep_amount=7



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502130107.t1D17D3q021789>