cvs commit: src/sys/kern tty_tty.c

Martin Blapp mbr at FreeBSD.org
Sat Sep 23 07:44:16 PDT 2006


mbr         2006-09-23 14:44:15 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             tty_tty.c 
  Log:
  If /dev/tty gets opened after your controlling terminal has been revoked
  you can't call tty_clone afterwords. OpenBSD and NetBSD both fail the
  open call in that case, so we should do so as well. This can
  be done in ctty_clone by returning with *dev==NULL. Admittedly this
  causes open to return ENOENT, instead of ENXIO as on the other BSDs,
  but this way requires the least touching of code.
  
  Submitted by:  Nate Eldredge <nge at cs.hmc.edu>
  PR:            83375
  
  MFC:           1 week
  
  Revision  Changes    Path
  1.58      +5 -1      src/sys/kern/tty_tty.c


More information about the cvs-src mailing list