logread -f does not respond to SIGPIPE

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Sat Jul 27 13:59:51 UTC 2013


On 27 July 2013 12:44:16 Frank Rosquin <frank.rosquin at gmail.com> wrote:
> Hi,
>
> So is anyone interested in this? Is it being tracked in some way?

You could file a bug in bugs.Busybox.net or, even better, see the FAQ on 
how to send tested patches.

TIA,
>
> Frank
>
> On Fri, Jul 5, 2013 at 11:52 PM, Frank Rosquin <frank.rosquin at gmail.com> wrote:
> > 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
>
>
>
> --
> Frank Rosquin
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox


Sent with AquaMail for Android
http://www.aqua-mail.com




More information about the busybox mailing list