diff options
author | gallatin <gallatin@FreeBSD.org> | 2001-05-22 18:45:12 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2001-05-22 18:45:12 +0000 |
commit | 8e0770e25c7f4696b90568738821fd554a2868ce (patch) | |
tree | 8b89c00ba924866df2e3664222fe7ebc42a771c0 /sys | |
parent | 7fdccd5e4cee994ff0f756def1c2ec06481c5695 (diff) | |
download | FreeBSD-src-8e0770e25c7f4696b90568738821fd554a2868ce.zip FreeBSD-src-8e0770e25c7f4696b90568738821fd554a2868ce.tar.gz |
grab the vm mtx around exec_new_vmspace()
Diffstat (limited to 'sys')
-rw-r--r-- | sys/alpha/osf1/imgact_osf1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/alpha/osf1/imgact_osf1.c b/sys/alpha/osf1/imgact_osf1.c index d6159cb..194140b 100644 --- a/sys/alpha/osf1/imgact_osf1.c +++ b/sys/alpha/osf1/imgact_osf1.c @@ -175,12 +175,14 @@ exec_osf1_imgact(struct image_params *imgp) /* * Destroy old process VM and create a new one (with a new stack). */ + mtx_lock(&vm_mtx); exec_new_vmspace(imgp); /* * The vm space can now be changed. */ vmspace = imgp->proc->p_vmspace; + mtx_unlock(&vm_mtx); imgp->interpreted = 0; imgp->proc->p_sysent = &osf1_sysvec; |