why is tty->pgrp set to -1 for console?
Daniel Jacobowitz
dmj+ at andrew.cmu.edu
Fri Feb 1 04:09:22 EST 2002
On Thu, Jan 31, 2002 at 08:58:58PM +0000, gopi at india.tejasnetworks.com wrote:
>
> hi..
>
> We had a problem that ctrl-c was not working on the console. I
> figured out that, ctrl-c was getting recognized as the 'intr' signal,
> but the function isig (in drivers/char/n_tty.c) sends a signal only if
> the tty->pgrp > 0.
>
> I have put a print stmt in this function and checked that the value
> is 'tty->pgrp = ffffffff' (which is -1).
>
> What is the correct procedure to follow to get around this problem
> and get ctrl-c working on console?
You need to run a getty on the console in order for SIGINT to get sent
properly. That should be all it takes. If the pgrp hasn't been set
yet, the kernel doesn't know where to send them.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list