Re: tty O_NONBLOCK spooky action at a distance

2007-06-30 Thread Alan Cox
On Sat, 30 Jun 2007 03:35:07 -0400 (EDT) Alan Curry <[EMAIL PROTECTED]> wrote: > Short version: writing to a tty with O_NONBLOCK will block if there is > another, unrelated process already blocking inside a write() to the same tty. I sent Linus patches to fix this minor DoS flaw some time ago. I'

tty O_NONBLOCK spooky action at a distance

2007-06-30 Thread Alan Curry
Short version: writing to a tty with O_NONBLOCK will block if there is another, unrelated process already blocking inside a write() to the same tty. Long version: Take this test program, nbhello.c #include #include #include int main(int argc, char **argv) { int fd; if(argc!=2) { fpr