svn commit: r278653 - head/bin/pkill/tests

Garrett Cooper ngie at FreeBSD.org
Fri Feb 13 01:07:14 UTC 2015


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


More information about the svn-src-all mailing list