Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel faigon <github.2009@yendor.com>2015-01-04 11:09:23 +0300
committerariel faigon <github.2009@yendor.com>2015-01-04 11:09:23 +0300
commit9b70ad37f20b40a30470c58502f3cc006618784e (patch)
tree77fa70b63221480203694999250ff3188ad19fe4
parentab23c0e92a6e9faa44419c9810a467f67071b077 (diff)
test/daemon-test.sh: undo unpulled-changes to sync with jl/master
-rwxr-xr-xtest/daemon-test.sh15
1 files 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() {