On Tuesday 13 December 2005 05:16, Rob Landley wrote:
> On Monday 12 December 2005 14:20, Blaisorblade wrote:
> > First, you can say con1=fd:0,fd:1 instead to redirect tty1 to stdin/out,
> > however you just need to add an entry in inittab for tty0 along with tty1
> > and list tty0 in /etc/*securetty* (path varies) to allow root to login
> > from tty0. Don't use /dev/console as that is very different and has
> > problems (aka Ctrl-C, Ctrl-Z don't work, for instance).

> It's a little more complicated than that.  Signals are blocked 

Except the ones for which PID 1 installed a signal handler. But yep, this is 
part of the picture, too.

> for PID 1 so 
> Ctrl-C and Ctrl-Z can't ever work for init=/bin/sh.

That's using /dev/console which doesn't become a controlling tty, and you know 
that since you tried to hack the !noctty test somewhere in TTY handling code.

> Attached is a dumb little program I use to get around this.

Yep, this program makes sense - it attacks both problems (/dev/console and PID 
1).
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

                
___________________________________ 
Yahoo! Messenger: chiamate gratuite in tutto il mondo 
http://it.messenger.yahoo.com



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to