From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750700AbWFSECO (ORCPT ); Mon, 19 Jun 2006 00:02:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750711AbWFSECO (ORCPT ); Mon, 19 Jun 2006 00:02:14 -0400 Received: from 1wt.eu ([62.212.114.60]:57864 "EHLO 1wt.eu") by vger.kernel.org with ESMTP id S1750700AbWFSECN (ORCPT ); Mon, 19 Jun 2006 00:02:13 -0400 Date: Mon, 19 Jun 2006 05:59:10 +0200 From: Willy Tarreau To: Samuel Thibault , linux-kernel@vger.kernel.org Subject: Re: emergency or init=/bin/sh mode and terminal signals Message-ID: <20060619035910.GA2678@1wt.eu> References: <20060618212303.GD4744@bouh.residence.ens-lyon.fr> <20060618223906.GA30726@animx.eu.org> <20060618224051.GE4744@bouh.residence.ens-lyon.fr> <20060618224424.GH13255@w.ods.org> <20060618224828.GF4744@bouh.residence.ens-lyon.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20060618224828.GF4744@bouh.residence.ens-lyon.fr> User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 19, 2006 at 12:48:28AM +0200, Samuel Thibault wrote: > Willy Tarreau, le Mon 19 Jun 2006 00:44:24 +0200, a écrit : > > On Mon, Jun 19, 2006 at 12:40:51AM +0200, Samuel Thibault wrote: > > > Wakko Warner, le Sun 18 Jun 2006 18:39:06 -0400, a écrit : > > > > why not only set this if the shell is /bin/sh ? > > > > > > Because you can't know that. /bin/sh is one example of shell, /bin/ash > > > is another /usr/bin/myprog is yet another... > > > > another possibility would be to do it only if 'init=' has been specified, > > since most of the time the kernel finds it itself. > > Init needs to be patched for the emergency case then. why ? the goal is to reduce the risk of killing init. This risk remains only if "init=..." was specified. In your case, it is permanent. > Samuel Regards, willy