06-25-07 06:22 AM
In article <1182739515.093413.224200@j4g2000prf.googlegroups.com>,
Bin Chen <binary.chen@gmail.com> wrote:
>Hi,
>
>The manual said it is delivered when a background process try to write
>to control tty, so I wrote a small program to test, it can't receive
>the signal.
Hopefully your manual also says, somewhere, that SIGTTOU is only sent if the
tty has the TOSTOP flag enabled. stty tostop, or see tcsetattr(3) to set it
from within your C code.
>void ttou()
>{
> printf("ttou.\n");
Nasty. Writing to the tty from within the signal handler that gets invoked
when you try to write to the tty. And it's in the background so there's no
^C'ing it. You got me. (I kill -9'ed it from another tty).
> return;
>}
--
Alan Curry
pacman@world.std.com
[ Post a follow-up to this message ]
|