bde 562a666ce0 Test the correct nonblocking flag in ttylclose(). IO_NDELAY is only valid
in read() and write().  FNONBLOCK is valid in ioctl() and close().

The bug caused hung ptys when a process talked to itself using nonblocking
i/o and exited while the slave pty had output to flush.  ttywait() was
called and hung.  Signals didn't work because the process was exiting.
`comcontrol /dev/ttyp0 drainwait 1' worked to terminate the wait.  This
shows that comcontrol is not limited to hardware control.  It has no i386
or driver dependencies and doesn't belong in src/sbin/i386.

Bruce
1995-05-07 06:32:28 +00:00
..
1995-04-15 06:54:13 +00:00
1994-08-02 07:55:43 +00:00
1995-02-24 08:51:34 +00:00
1994-08-02 07:55:43 +00:00
1994-08-02 07:55:43 +00:00
1994-08-02 07:55:43 +00:00
1994-09-13 14:47:38 +00:00
1995-02-27 19:47:53 +00:00
1994-08-02 07:55:43 +00:00
1994-08-02 07:55:43 +00:00
1994-11-12 01:47:43 +00:00
1994-11-12 01:47:43 +00:00
1994-08-02 07:55:43 +00:00
1994-08-02 07:55:43 +00:00