ref: 1e2d95a8038346d38f1cebeabe0ad64ea874b7fe
parent: b7c05975f53cd0acea81c9f1cfed302328ec8478
author: cinap_lenrek <[email protected]>
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)){