From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1EIsam-0004Fz-Ah for user-mode-linux-devel@lists.sourceforge.net; Fri, 23 Sep 2005 11:48:16 -0700 Received: from marasystems.com ([83.241.133.2] helo=filer.marasystems.com) by mail.sourceforge.net with esmtp (Exim 4.44) id 1EIsal-0003Om-Vg for user-mode-linux-devel@lists.sourceforge.net; Fri, 23 Sep 2005 11:48:16 -0700 From: Henrik Nordstrom Subject: Re: [uml-devel] Any way to give /dev/console a controlling TTY? In-Reply-To: <200509231135.27882.rob@landley.net> Message-ID: References: <200509231135.27882.rob@landley.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: The user-mode Linux development list List-Post: List-Help: List-Subscribe: , List-Archive: Date: Fri, 23 Sep 2005 20:47:59 +0200 (CEST) To: Rob Landley Cc: user-mode-linux-devel@lists.sourceforge.net On Fri, 23 Sep 2005, Rob Landley wrote: > I'm the strange guy using UML via the stdio console, ala: > > ./linux rootfstype=hostfs MEM=48m rw init=/bin/sh LD_ASSUME_KERNEL=2.4.1 > > And it would be very nice if ctrl-c would work with that. I tried commenting > out the "!noctty &&" test in line 1872, but it didn't make any difference. > > Anybody see an obvious way to make /dev/console a controlling TTY? The stdin given by the kernel to init is not a controlling TTY as this would be disasterous (imagine someone sending breaks during the boot sequence, breaking various init tasks or even init itself...), but any init related process (but only one) can claim it as the controlling TTY and will then be given signals. This is not unique to UML but applies to all architectures. There is nothing wrong with using /dev/console instead of a "real" tty. /dev/console is no more than an alias for the first console tty. But you won't get it as a controlling TTY unless explicitly asked for. Regards Henrik ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel