Alfred Perlstein 3865fa138b Remove bogus assertion in dup2 that can lead to panics when kernel
threads race for a file slot.

dup2(2) incorrectly assumes that if it needs to grow the ofiles
array that it will get what it wants.  This assertion was valid
before we allowed shared filedescriptor tables but is now incorrect.

The assertion can trigger superfolous panics if the thread doing a
dup2 looses a race with another thread while possibly blocked in
the MALLOC call in fdalloc.  Another thread may grab the slot we
are requesting which makes fdalloc return something other than what
we asked for, this will triggering the bogus assertion.

MFC after: 2 weeks
Reviewed by: phk
2002-02-01 19:25:36 +00:00
..
2002-02-01 14:48:44 +00:00
2002-01-08 19:33:51 +00:00
2002-01-17 02:14:44 +00:00
2002-01-14 22:03:48 +00:00
2002-01-30 23:38:31 +00:00
2001-09-12 08:38:13 +00:00