Re: emergency or init=/bin/sh mode and terminal signals

From: Samuel Thibault
Date: Mon Jun 19 2006 - 03:58:43 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/