ref: a9302b8de658de9fb9ba224c48cd16e356c6c5bf
parent: 1e3b882e81597d9213a52a9b816faf6e965db739
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Mar 20 15:15:40 EDT 2017
ip/torrent: exit immidiately when file is complete after verification and not being in seed mode
--- a/sys/src/cmd/ip/torrent.c
+++ b/sys/src/cmd/ip/torrent.c
@@ -1352,6 +1352,9 @@
while(waitpid() >= 0)
;
+ if(finished() && !sflag)
+ exits(0);
+
srand(truerand());
atnotify(catch, 1);
switch(i = rfork(RFPROC|RFMEM|RFNOTEG)){--
⑨