(Sorry for top-posting - this is a webmail) /bin/bash is running with stding and stdout attached to /dev/console, and on /dev/console ignores Ctrl-* (and that's on purpose, and not UML specific). Possibly just the terminal emulator is noticing the press of Ctrl-C, or it's /dev/console itself.
If you run the open or openvt command, it will run bash on /dev/ttyXXX and there, you'll see that Ctrl-C works. ----- Messaggio originale ----- Da: Sylvain Beucler <[EMAIL PROTECTED]> A: user-mode-linux-user@lists.sourceforge.net Inviato: Lunedì 11 giugno 2007, 22:16:25 Oggetto: [uml-user] C-c/sig.intr is caught Hi, I'm working on 'umdo', i.e. sudo with User-Mode Linux (attached). I use the rootfstype=hostfs command line option. I notice, though, that C-c, C-\ and C-z (at least) do not work. I'm puzzled because the key events _are_ sent to the UML-jailed process, yet the signal is somehow blocked. Example: let's run "cat" from a UML'd bash, then press C-c, then C-h, then C-d (to quit "cat"): $ linux rootfstype=hostfs rw quiet init=/bin/bash root@(none):/# cat ^H root@(none):/# stty intr ^H root@(none):/# cat ^C root@(none):/# stty intr ^I root@(none):/# cat ^C^H Notice that each time, they key associated with 'intr' is caught sowewhere. Idem for C-\ (quit) Idem for C-z (susp) C-s (stop), C-q (start), C-d (eof) do work, though. There's more: running through 'getty' enables C-c and C-\ But C-z is still disabled: $ linux rw rootfstype=hostfs quiet init=/sbin/getty -inl /bin/bash 38400 tty0 root@(none):/# cat root@(none):/# # C-c worked. How can I enable all key shortcuts in a uml? Do you know what is the cause of this behavior? Thanks, -- Sylvain ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user ___________________________________ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user