From 9b70ad37f20b40a30470c58502f3cc006618784e Mon Sep 17 00:00:00 2001 From: ariel faigon Date: Sun, 4 Jan 2015 00:09:23 -0800 Subject: test/daemon-test.sh: undo unpulled-changes to sync with jl/master --- test/daemon-test.sh | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/test/daemon-test.sh b/test/daemon-test.sh index 8c35fc1f..73a31182 100755 --- a/test/daemon-test.sh +++ b/test/daemon-test.sh @@ -39,17 +39,6 @@ else exit 1 fi -# -# fractional seconds sleep -# -mysleep() { - case "$1" in - *[0-9]*) Seconds="$1" ;; - *) Seconds=0.2 ;; - esac - perl -e "select(undef,undef,undef,$Seconds)" -} - # A command and pattern that will unlikely to match anything but our own test DaemonCmd="$VW -t -i $MODEL --daemon --num_children 1 --quiet --port $PORT" @@ -58,8 +47,8 @@ stop_daemon() { # echo stopping daemon $PKILL -9 -f "$DaemonCmd" 2>&1 | grep -q 'no process found' # relinquish CPU by forcing some conext switches to be safe - # (to let existing vw daemon procs die) - mysleep 0.05 + # (let existing vw daemon procs die) + wait } start_daemon() { -- cgit v1.2.3