Brian Somers a48de39daf Close a race where we were releasing the unit resource at the start
of tunclose() rather than the end, and tunopen() grabbed that unit
before tunclose() finished (one process is allocating it while another
is freeing it!).

It may be worth hanging some sort of rw mutex around all specinfo
calls where d_close and the detach handler get a write lock and all
other functions get a read lock.  This would guarantee certain levels
of ``atomicity'' (is that a word?) that people may expect (I believe
Solaris does something like this).
2001-06-20 10:06:28 +00:00
..
2000-12-27 22:20:13 +00:00
2001-06-15 07:31:15 +00:00
2001-06-11 12:39:29 +00:00
2001-06-11 12:39:29 +00:00
2001-06-11 12:39:29 +00:00
2001-06-11 12:39:29 +00:00
2001-01-31 08:27:09 +00:00
2001-06-11 12:39:29 +00:00
2001-06-11 12:39:29 +00:00
2000-07-20 17:01:10 +00:00
2001-03-28 09:17:56 +00:00
2001-06-11 12:39:29 +00:00
2001-06-11 12:39:29 +00:00
2001-06-11 12:39:29 +00:00
2001-06-11 12:39:29 +00:00
2001-06-11 12:39:29 +00:00
2001-06-11 12:39:29 +00:00