aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/venti
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-01-14 19:46:47 -0500
committerRuss Cox <rsc@swtch.com>2020-01-14 19:46:47 -0500
commit5c06214952017d03f5e36bd1fbf25c1969922d80 (patch)
tree978ad6fa98723bfbf9906301fc37cea9ffe21d3d /src/cmd/venti
parent1f799495e4aa89be5f32e3fcda8da342f3057f3c (diff)
downloadplan9port-5c06214952017d03f5e36bd1fbf25c1969922d80.tar.gz
plan9port-5c06214952017d03f5e36bd1fbf25c1969922d80.tar.bz2
plan9port-5c06214952017d03f5e36bd1fbf25c1969922d80.zip
venti/buildindex: fix hang on large indexes
Fixes #93.
Diffstat (limited to 'src/cmd/venti')
-rw-r--r--src/cmd/venti/srv/buildindex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/venti/srv/buildindex.c b/src/cmd/venti/srv/buildindex.c
index faf4b414..540f0fdc 100644
--- a/src/cmd/venti/srv/buildindex.c
+++ b/src/cmd/venti/srv/buildindex.c
@@ -164,7 +164,7 @@ threadmain(int argc, char *argv[])
}
/* wait for arena procs to finish */
- for(nfinish=0; nfinish<napart; nfinish++)
+ for(; nfinish<napart; nfinish++)
recvp(arenadonechan);
/* tell index procs to finish */