summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/ip/torrent.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/src/cmd/ip/torrent.c b/sys/src/cmd/ip/torrent.c
index fc324977b..3cc1aeb09 100644
--- a/sys/src/cmd/ip/torrent.c
+++ b/sys/src/cmd/ip/torrent.c
@@ -1352,6 +1352,9 @@ main(int argc, char *argv[])
while(waitpid() >= 0)
;
+ if(finished() && !sflag)
+ exits(0);
+
srand(truerand());
atnotify(catch, 1);
switch(i = rfork(RFPROC|RFMEM|RFNOTEG)){