From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751006AbWFSH76 (ORCPT ); Mon, 19 Jun 2006 03:59:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932244AbWFSH75 (ORCPT ); Mon, 19 Jun 2006 03:59:57 -0400 Received: from iona.labri.fr ([147.210.8.143]:63659 "EHLO iona.labri.fr") by vger.kernel.org with ESMTP id S1751006AbWFSH75 (ORCPT ); Mon, 19 Jun 2006 03:59:57 -0400 Date: Mon, 19 Jun 2006 09:59:56 +0200 From: Samuel Thibault To: Willy Tarreau Cc: linux-kernel@vger.kernel.org Subject: Re: emergency or init=/bin/sh mode and terminal signals Message-ID: <20060619075955.GC4253@implementation.labri.fr> Mail-Followup-To: Samuel Thibault , Willy Tarreau , linux-kernel@vger.kernel.org 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> <20060619035910.GA2678@1wt.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20060619035910.GA2678@1wt.eu> User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Willy Tarreau, le Mon 19 Jun 2006 05:59:10 +0200, a écrit : > 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 ? For the "emergency" case: for now, init doesn't create a session either in such case. Samuel