X-Git-Url: http://dolda2000.com/gitweb/?p=utils.git;a=blobdiff_plain;f=autodlctl;fp=autodlctl;h=1215c65a45f9e978dc5d9f39977033f50e66e3e7;hp=78ef0e697e3b2dc2066d0cb34272305f930ef94c;hb=ccc141a39e09ba0ddd163e953a642beb002cccef;hpb=07878795a599200feca71c101756de5757b2e8f0 diff --git a/autodlctl b/autodlctl index 78ef0e6..1215c65 100755 --- a/autodlctl +++ b/autodlctl @@ -182,6 +182,10 @@ while [ "$done" != y ]; do pid="`cat "$HOME/dc/autodl/run/$tag"`" echo "sending SIGUSR1 to $pid" kill -USR1 "$pid" + while [ -e "$HOME/dc/autodl/run/$tag" ]; do + echo "waiting for it to exit" + sleep 1 + done else echo "could not find pid for $tag" fi