why is tty->pgrp set to -1 for console?
dan at embeddededge.com
Fri Feb 1 07:53:57 EST 2002
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.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev