=== modified file 'usv.bg' --- usv.bg 2013-05-04 16:30:11 +0000 +++ usv.bg 2013-05-04 12:54:56 +0000 @@ -6,9 +6,9 @@ while ! usv.check $D; do CSEC_WAIT=$(( CSEC_WAIT - 1 )) sleep '0.01s' - if ! (($CSEC_WAIT)); then - print >&2 "failed to spawn runsvdir in: $D" - exit 1 - fi done + if ! (($CSEC_WAIT)); then + print >&2 "failed to spawn runsvdir in: $D" + exit 1 + fi fi === modified file 'usv.check' --- usv.check 2013-05-04 16:30:11 +0000 +++ usv.check 2013-05-04 12:54:56 +0000 @@ -1,4 +1,4 @@ #!/bin/zsh -PID=$1/runsvdir.pid +PID=$1/svdir.pid [[ -d $1 ]] && [[ -f $PID ]] && kill -0 $(<$PID) exit $?