summaryrefslogtreecommitdiffstats
path: root/bin/pkill
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-02-13 01:07:12 +0000
committerngie <ngie@FreeBSD.org>2015-02-13 01:07:12 +0000
commitdd948d6f916470ac593900102223e47a4cd5ca3e (patch)
tree25cc98e1ca48a5a4441dfea58fd9a504b063e86e /bin/pkill
parentf73fe912243adc2e1d22b059b700342551ad6661 (diff)
downloadFreeBSD-src-dd948d6f916470ac593900102223e47a4cd5ca3e.zip
FreeBSD-src-dd948d6f916470ac593900102223e47a4cd5ca3e.tar.gz
Call wait to ensure that background processes have died
This is being done to establish parity with pgrep-j_test
Diffstat (limited to 'bin/pkill')
-rw-r--r--bin/pkill/tests/pgrep-j_test.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/pkill/tests/pgrep-j_test.sh b/bin/pkill/tests/pgrep-j_test.sh
index 4afe28a..23e586a 100644
--- a/bin/pkill/tests/pgrep-j_test.sh
+++ b/bin/pkill/tests/pgrep-j_test.sh
@@ -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
OpenPOWER on IntegriCloud