Re: why is tty->pgrp set to -1 for console?

2 messages, 2 authors, 2002-01-31 · open the first message on its own page

Re: why is tty->pgrp set to -1 for console?

From: David Boutcher <hidden>
Date: 2002-01-31 19:14:54

 We had a problem that ctrl-c was not working on the console.
You need to be running something like mingetty on the console to have
signals (like ctrl-c) picked up.  If you start Linux with something like
"init=/bin/bash" then job control signals (like control C and control Z)
won't work.

Dave Boutcher
iSeries Linux guy


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: why is tty->pgrp set to -1 for console?

From: Dan Malek <hidden>
Date: 2002-01-31 20:53:57

David Boutcher wrote:

You need to be running something like mingetty on the console to have
signals (like ctrl-c) picked up.  If you start Linux with something like
"init=/bin/bash" then job control signals (like control C and control Z)
won't work.
One of the main reasons for this is the process in slot 1 (i.e. init)
has special signal handling in the kernel.  There are a variety of ways
to get a shell with job control running on the console.  Starting some
version of getty/mingetty as you mentioned is one, you can also fork a
shell and use stty to set signals, or anything to get a shell running
as process 2 or above.


	-- Dan


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help