[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: ash buildin "read" interrupted on SIGCHLD
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2017-05-22 17:43:30
Message-ID: CAK1hOcMN8ejv-VHuTtaFmb5auKZaCwOwMaOjVae50US6x9NWxw () mail ! gmail ! com
[Download RAW message or body]

On Tue, May 9, 2017 at 11:14 AM, Guido Classen
<clagi.x+busybox@gmail.com> wrote:
> Hi,
>
> I've observed some strange behavior in ash buildin "read" when
> a SIGCHLD arrives in current busybox.
>
> old behavior on busybox 1.24.2 ash (same behavior also on Debian bash and dash)
>
>    sleep 1& read x
>     => waits for ever until input is given
>
> new behavior on busybox
>
>   sleep 1& read x
>    [1]+  Done                       sleep 1
>    => read will be interrupted after one second due raise of SIGCHLD

Oops...

> I am not sure what is the right place to fix this. Any comment on this?
> For me it works to suppress this signal on the corresponding poll() call.

Well, SIGCHLD may have a trap, so, that would not be correct.

Fixed in git, please try.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic