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 1EIswC-0005JJ-IT for user-mode-linux-devel@lists.sourceforge.net; Fri, 23 Sep 2005 12:10:24 -0700 Received: from smtp005.mail.ukl.yahoo.com ([217.12.11.36]) by mail.sourceforge.net with smtp (Exim 4.44) id 1EIsw9-0007be-Sc for user-mode-linux-devel@lists.sourceforge.net; Fri, 23 Sep 2005 12:10:24 -0700 From: Blaisorblade Subject: Re: [uml-devel] Any way to give /dev/console a controlling TTY? References: <200509231135.27882.rob@landley.net> <200509231331.47282.rob@landley.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509232108.51050.blaisorblade@yahoo.it> 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 21:08:50 +0200 To: user-mode-linux-devel@lists.sourceforge.net Cc: Henrik Nordstrom , Rob Landley On Friday 23 September 2005 20:56, Henrik Nordstrom wrote: > On Fri, 23 Sep 2005, Rob Landley wrote: > >> Anybody see an obvious way to make /dev/console a controlling TTY? > > The user-space process who wants it as a controlling tty needs to run > > ioctl(0, TIOCSCTTY, (void *) 1); > > You should also take care to set up the termios parameters correctly. > > At http://marasystems.com/download/ctty/ you can find a little tool we use > in embedded systems making /dev/console a controlling TTY. We use from > inittab in the main console entries (single and console). > > ls:S:wait:ctty ash > sh:0123456:respawn:ctty console > (console is our console command line program) So in this case he should use init=/sbin/ctty sh, right? > Regards > Henrik -- 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! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ------------------------------------------------------- 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