Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 May 2009 12:32:03 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern tty.c
Message-ID:  <200905241232.n4OCW7qN029656@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ed          2009-05-24 12:32:03 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             tty.c 
  Log:
  SVN rev 192682 on 2009-05-24 12:32:03Z by ed
  
  Block when initially opening a TTY multiple times.
  
  In the original MPSAFE TTY code, I changed the behaviour by returning
  EBUSY. I thought this made more sense, because it's basically a race to
  see who gets the TTY first.
  
  It turns out this is not a good change, because it also causes EBUSY to
  be returned when another process is closing the TTY. This can happen
  during startup, when /etc/rc (or one of its children) is still busy
  draining its data and /sbin/init is attempting to open the TTY to spawn
  a getty.
  
  Reported by:    bz
  Tested by:      bz
  
  Revision  Changes    Path
  1.315     +11 -5     src/sys/kern/tty.c



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