Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 May 1995 23:32:30 -0700
From:      Bruce Evans <bde>
To:        CVS-commiters, cvs-sys
Subject:   cvs commit: src/sys/kern tty.c
Message-ID:  <199505070632.XAA07345@freefall.cdrom.com>

next in thread | raw e-mail | index | archive | help
bde         95/05/06 23:32:29

  Modified:    sys/kern  tty.c
  Log:
  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505070632.XAA07345>