venti/buildindex: fix hang on large indexes

Fixes #93.
This commit is contained in:
Russ Cox 2020-01-14 19:46:47 -05:00
parent 1f799495e4
commit 5c06214952

View file

@ -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 */