logread -f does not respond to SIGPIPE
Frank Rosquin
frank.rosquin at gmail.com
Fri Jul 5 21:52:00 UTC 2013
Hi,
when spawning an instance of logread -f from a script, if the parent
script dies/gets killed, logread never exits even though it gets sent
SIGPIPE
http://git.baserock.org/cgi-bin/cgit.cgi/delta/busybox.git/tree/sysklogd/logread.c#n99
The general consensus seems to be to add ```signal(SIGPIPE,
interrupted);``` below line 99 above. This is not my idea, as my C
knowledge is minimal.
As a point of reference, tail -f does exist under the same circumstances.
As requested by sh4rm4 and landley on #busybox, I am submitting this
issue here on the mailing list.
If you need more information, i will supply what I can.
Much obliged.
--
Frank Rosquin
More information about the busybox
mailing list