Skip to contentSkip to conversation

stdin lockup using con0=fd:0,fd:1 (guest 2.4.26-3um)

uml-devel D. Bahi 2 participants 2 messages Mar 2, 2005 – Mar 5, 2005 User-mode Linux (UML)

lore
Share & tools
lore

D. Bahi

author
#0 lore raw

did i miss the console cleanup crew?

i have a UML guest command line that uses con0=fd:0,fd:1 (or not, as this is the default for CONFIG_CON_ZERO_CHAN)

i launch new xterms using -- xterm -e '<guest cmdline>' & (side note - can lock it w/o this too.) and users leaning on the keyboard (most notably <enter>) while the new xterms pop up and steal the window focus have experienced unresponsive UML prompts.

no further keyboard input is processed...

uml_mconsole <id> reboot and things can be made better. so the UML isn't locked up just the stdin....

i've tried to go thru stdio_init -> open_console -> line_open to see if there was a likely place to drop a 'flush' of stdin before we try attaching 0 -> 1 and 1 -> 0 (line_setup_irq)... but i don't understand it all enough <frown>.

this is redhat 9 + SKAS - NPTL 2.4.20-31 host kernel linux 2.4.26-3um guest kernel.

thank you.

--
db

#1 lore raw
Quoted 1 line · D. Bahi

did i miss the console cleanup crew?

? Not understood, 2.4 didn't get the big cleanup.

Quoted 5 lines

i have a UML guest command line that uses con0=fd:0,fd:1 (or not, as this is the default for CONFIG_CON_ZERO_CHAN)

i launch new xterms using -- xterm -e '<guest cmdline>' & (side note - can lock it w/o this too.)

Describe the other scenario please...

Quoted 4 lines

and users leaning on
the keyboard (most notably <enter>) while the new xterms pop up and steal the window focus have experienced unresponsive UML prompts.

Hmm, can you exclude this is some X11 problem? I get problems in my Opera browser when a Java applet is started (which makes a Java progress window appear for a while). No, I'm not joking. Please try getting the same thing inside normal consoles, or getting the same thing with xterms and without UML.

Quoted 7 lines

no further keyboard input is processed...

uml_mconsole <id> reboot and things can be made better. so the UML isn't locked up just the stdin....

i've tried to go thru stdio_init -> open_console -> line_open to see if there was a likely place to drop a 'flush' of stdin

? I don't think stdin is flushable (but I don't understand what you mean, so I could be wrong).

Quoted 1 line

before we try attaching 0 -> 1 and 1 -> 0 (line_setup_irq)...

Hmm, line_setup_irq makes sure that a IRQ is triggered when a event is received on the fd. That fd is provided by the channel driver (the one in con=xterm/pty/fd).

Quoted 6 lines

but i don't understand it all enough <frown>.

this is redhat 9 + SKAS - NPTL 2.4.20-31 host kernel linux 2.4.26-3um guest kernel.

thank you.

Signature · 17 lines
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel