cvs commit: src/sys/kern kern_descrip.c

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Jun 14 09:59:44 PDT 2006


dillon      2006/06/14 09:58:04 PDT

DragonFly src repository

  Modified files:
    sys/kern             kern_descrip.c 
  Log:
  fcntl(.., F_SETFL, ..) should only do an FIOASYNC ioctl if the FASYNC
  bit has changed.   Otherwise a program just trying to set O_NONBLOCK might
  get an error from devices that don't like FIOASYNC.
  
  The 'pty' device master will fail on FIOASYNC if the slave has not been
  opened.  This bug caused rxvt to hang, but rxvt only set O_NONBLOCK and
  wasn't really at fault.
  
  Reported-by: Johannes Hofmann <Johannes.Hofmann at xxxxxx>
  
  Revision  Changes    Path
  1.69      +7 -5      src/sys/kern/kern_descrip.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_descrip.c.diff?r1=1.68&r2=1.69&f=u





More information about the Commits mailing list