HomeFreeBSD

grep: toss in some explicit fflush()

Description

grep: toss in some explicit fflush()

grep|tee of the src/ tree for infrequently-occurring strings is fairly
annoying; drop some tactical flushes at line-match boundaries to reduce
the long stalls. In the case of grep -o, we'll flush after multiple
lines if there are multiple matches within a single line of text, while
for non`-o` we'll flush generally after every line.

Details

Provenance
kevansAuthored on Aug 8 2025, 4:52 AM
Parents
rGbd21c672a868: jail.h: fix the build
Branches
Unknown
Tags
Unknown