Konstantin Belousov 9719da13e7 When doing rfork(0), i.e. separating curproc VM from any other user of
the same vmspace, decrement the reference count of the shared LDT instead
of a newly-made copy. Code factually removed LDT from the process that
did rfork(0).

Introduce user_ldt_deref() function that does decrement of refcount for
the struct proc_ldt, and call it in the rfork(0) case on the shared LDT.

Reviewed by:	jhb
MFC after:	1 week
2008-09-12 09:53:29 +00:00
..
2008-09-12 03:45:08 +00:00
2008-08-24 07:40:14 +00:00
2008-09-12 03:45:08 +00:00
2008-09-03 18:17:45 +00:00
2008-08-31 23:54:22 +00:00
2008-08-20 09:20:12 +00:00