From: Daniel Pittman Subject: Re: [Devel] Re: [PATCH 1/3] Signal semantics for /sbin/init Date: Fri, 14 Sep 2007 20:16:29 +1000 Message-ID: <87myvpo8le.fsf@enki.rimspace.net> References: <20070911041030.GA1264@us.ibm.com> <20070911111928.GA123@tv-sign.ru> <46E959EB.2070207@fr.ibm.com> <20070913165820.GA3465@tv-sign.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <20070913165820.GA3465-6lXkIZvqkOAvJsYlp49lxw@public.gmane.org> (Oleg Nesterov's message of "Thu, 13 Sep 2007 20:58:20 +0400") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Oleg Nesterov Cc: Containers List-Id: containers.vger.kernel.org Oleg Nesterov writes: > On 09/13, Cedric Le Goater wrote: >> Oleg Nesterov wrote: [...] >> To respect the current init semantic, > > The current init semantic is broken in many ways ;) Yup. They sure are, but they are pretty set in stone by now. :) >> shouldn't we discard any unblockable signal (STOP and KILL) sent by a >> process to its pid namespace init process ? Then, all other signals >> should be handled appropriately by the pid namespace init. > > Yes, I think you are probably right, this should be enough in > practice. After all, only root can send the signal to /sbin/init. On > my machine, /proc/1/status shows that init doesn't have a handler for > non-ignored SIGUNUSED == 31, though. > > But who knows? The kernel promises some guarantees, it is not good to > break them. Perhaps some strange non-standard environment may suffer. In this case "strange non-standard environments" would mean anyone running the 'upstart' daemon from recent Ubuntu -- it depends on the current kernel semantics. Regards, Daniel -- Daniel Pittman Phone: 03 9621 2377 Level 4, 10 Queen St, Melbourne Web: http://www.cyber.com.au Cybersource: Australia's Leading Linux and Open Source Solutions Company