logo       

Re: [uml-user] getting pts console back after master fd closed: msg#00295

Subject: Re: [uml-user] getting pts console back after master fd closed
On Mon, Oct 27, 2003 at 10:24:47AM -0500, Jeff Dike wrote:
> s-uml@xxxxxxxxx said:
> > If you boot UML (any released version) with con=pts (or variants),
> > attach something like screen to the master end of the pts (/dev/pts/X)
> > to view the console, and then quit that application (or have it close /
> > dev/pts/X), that pseudo tty will go away and you won't be able access
> > the console anymore.
> 
> If you read dmesg, it will tell you what device it got when it reopened the
> terminal.  That should also be available through mconsole.

I'm not seeing anything new printed in dmesg after the original pty gets
closed. I do see the first "Virtual console 0 assigned device '/dev/pts/5'"
printed during boot, but nothing after closing the pts device. Do I have to
enable something somewhere to get uml to reopen after close?

This is 2.4.22-5um, 2.4.20+skas3 on the host...

    host% ./linux con0=pts .....
    host% uml_mconsole uml config con0
    OK pts:/dev/pts/5
    host% cat /dev/pts/5

    Debian GNU/Linux 3.0 uml.localdomain ttys/0
    
    uml.localdomain login:
    ^C
    host% cat /dev/pts/5
    cat: /dev/pts/5: No such file or directory
    host% ssh uml dmesg | tail -n 5
    NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    VFS: Mounted root (ext2 filesystem) readonly.
    Mounted devfs on /dev
    Using a channel type which is configured out of UML
    Using a channel type which is configured out of UML
    host% 

I don't know if it is relevant, but the uml's dmesg contains the lines:

    Checking that host ptys support output SIGIO...Yes
    Checking that host ptys support SIGIO on close...No, enabling workaround

Thanks


-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/


<Prev in Thread] Current Thread [Next in Thread>