| Date | Tue, 01 Jul 2008 18:20:58 +0930 | From | David Newall <> | Subject | Re: Ctrl+C doesn't interrupt process waiting for I/O |
| |
Elias Oltmanns wrote: > - if (!L_NOFLSH(tty)) { > - n_tty_flush_buffer(tty); > - tty_driver_flush_buffer(tty); > - } > if (L_ECHO(tty)) > echo_char(c, tty); > - if (tty->pgrp) > - kill_pgrp(tty->pgrp, signal, 1); > + isig(signal, tty, 0);
My first reaction is that tty->pgrp must be null. Perhaps the patch could be simplified...
if (tty->pgrp) kill_pgrp(tty->pgrp, signal, 1); + else + isig(signal, tty, 0);
Thoughts?
|