Unify code paths of threaded greps
commite1a0ad012be06b3b1ae7a22b541de6a4bc991fae
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 7 Feb 2010 18:58:28 +0000 (7 19:58 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 12 Apr 2010 12:56:20 +0000 (12 14:56 +0200)
tree7716a70f899e33b96c4da5c580456aa996ee0a3c
parentd3c402ff43caf5b90895040cce2abb12e8012e23
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