ed cb56810df2 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
2009-05-24 12:32:03 +00:00
..
2009-05-18 12:03:43 +00:00
2008-08-03 21:07:19 +00:00
2009-05-12 17:05:40 +00:00
2008-09-22 10:37:02 +00:00
2008-05-12 06:42:06 +00:00
2008-05-23 04:06:49 +00:00
2007-12-14 21:30:51 +00:00
2009-05-20 17:19:30 +00:00
2009-05-20 02:51:48 +00:00
2009-03-30 15:01:29 +00:00
2009-04-21 19:14:13 +00:00