Subject: CVS commit: syssrc
To: None <>
From: Jason R Thorpe <>
List: source-changes
Date: 10/11/2000 20:27:59
Module Name:	syssrc
Committed By:	thorpej
Date:		Wed Oct 11 17:27:59 UTC 2000

Modified Files:
	syssrc/sys/uvm: uvm_glue.c uvm_map.c

Log Message:
- uvmspace_share(): If p2 has a vmspace already, make sure to deactivate
  it and free it as appropriate.  Activate p2's new address space once
  it references p1's.
- uvm_fork(): Make sure the child's vmspace is NULL before calling
  uvmspace_share() (the child doens't have one already in this case).

These changes do not change the behavior for the current use of
uvmspace_share() (vfork(2)), but make it possible for an already
running process (such as a kernel thread) to properly attach to
another process's address space.

To generate a diff of this commit:
cvs rdiff -r1.41 -r1.42 syssrc/sys/uvm/uvm_glue.c
cvs rdiff -r1.82 -r1.83 syssrc/sys/uvm/uvm_map.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.