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

List:       busybox
Subject:    Re: Deadlock in init
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2014-11-21 19:12:48
Message-ID: CAK1hOcNi2+C7PQ9zG4Bx4stWX7_9Y=-cWkbLg+YfoCGF3CSOBA () mail ! gmail ! com
[Download RAW message or body]

On Fri, Nov 21, 2014 at 12:37 AM, Seth Bollinger <seth.boll@gmail.com> wrote:
> Hello All,
>
> We recently ran into a deadlock in init.  The window is small, but I figured
> I would post to the list anyway.
>
> There are syslog messages in the signal handler for reboot and shutdown.
> Internally this function grabs a lock.  If the main loop is trying to grab
> this lock at exactly the same time (also posting a syslog message), then a
> deadlock is possible.

You are right. Init code was careless inside signal handlers.

Fixed in git (hopefully), thanks!
_______________________________________________
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