bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#13183: tail -f ignores SIGPIPE


From: Pádraig Brady
Subject: bug#13183: tail -f ignores SIGPIPE
Date: Fri, 14 Dec 2012 14:33:29 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

tag 13183 + notabug
close 13183
stop

On 12/14/2012 02:04 PM, Ruediger Meier wrote:
Hi,

I want to use tail and grep to follow a file until a particular pattern
appears. But tail does not exit when grep is finished.

$ echo xxx > /tmp/blabla
$ tail -f /tmp/blabla |grep -m1 --line-buffered "xxx"
xxx

Now tail still tries to read and exits only if I write again
into /tmp/blabla.

Is this how it's supposed to be?

tail does exit on SIGPIPE, however it will
only get the signal on write(), and so you
need to get more data in the file before tail will exit.

thanks,
Pádraig.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]