Unify code paths of threaded greps
commitd00d6559bb551fe6e1cd6543804f6a36cf2f6475
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 7 Feb 2010 18:58:28 +0000 (7 19:58 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 30 Mar 2010 13:29:57 +0000 (30 15:29 +0200)
tree8578f69348b212e82a334f1897670f8fc74b8311
parent6a6955134b87ba3ea7d54467e637be0da7ba170b
Unify code paths of threaded greps

There were two awfully similar code paths ending the threaded grep. It
is better to avoid duplicated code, though.

This change might very well prevent a race, where the grep patterns were
free()d before waiting that all threads finished.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
builtin/grep.c