tail does not exit

Mikhail Teterin mi+kde at aldan.algebra.com
Thu Dec 20 08:03:07 PST 2007

On четвер 20 грудень 2007, Erik Osterholm wrote:
= The same behavior happens if I use a larger file.  I see no
= inconsistent behavior, nor any bugs.

The inconsistency is in the fact, that the behavior depends on the size of the 
buffer and length of the lines (not the size of the file).

If the 10 lines, which tail tries to output initially, exceed the size of the 
buffer, tail learns about awk going away immediately. If the lines are not 
long enough, it does not.

Also, I would expect a program to be notified (by SIGPIPE?) /immediately/, 
when any of its output pipes are closed -- instead of waiting for it to try 
to write into the pipe. But this issue is not, it seems, FreeBSD-specific...


More information about the freebsd-questions mailing list