Matthew Dillon 3db161e079 It is possible for an active aio to prevent shared memory from being
dereferenced when a process exits due to the vmspace ref-count being
bumped.  Change shmexit() and shmexit_myhook() to take a vmspace instead
of a process and call it in vmspace_dofree().  This way if it is missed
in exit1()'s early-resource-free it will still be caught when the zombie is
reaped.

Also fix a potential race in shmexit_myhook() by NULLing out
vmspace->vm_shm prior to calling shm_delete_mapping() and free().

MFC after:	7 days
2003-01-13 23:04:32 +00:00
..
2003-01-08 04:57:53 +00:00
2002-12-14 02:07:32 +00:00
2002-12-28 23:22:22 +00:00
2003-01-07 05:56:38 +00:00
2003-01-04 11:45:50 +00:00
2003-01-04 20:54:58 +00:00
2003-01-11 12:39:45 +00:00
2003-01-07 05:56:38 +00:00
2002-09-05 11:42:03 +00:00
2002-12-22 05:35:03 +00:00
2003-01-07 20:10:04 +00:00
2002-12-17 19:31:26 +00:00
2002-10-02 09:09:25 +00:00
2002-12-14 01:56:26 +00:00
2003-01-08 04:57:53 +00:00
2003-01-04 11:41:12 +00:00
2002-12-17 19:30:50 +00:00
2002-12-24 03:03:39 +00:00