diff options
| author | Alan Cox <alc@FreeBSD.org> | 2002-11-25 04:37:44 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2002-11-25 04:37:44 +0000 |
| commit | 2d21129db2f1c62575fa3d1900f5df69ee36a49e (patch) | |
| tree | 129b87d9dd7a7ed0549f1b9045382667424e66b1 /sys/kern/kern_exec.c | |
| parent | 37efca486e8ddcb1c7d96ddf0ec3783d20e1c098 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_exec.c')
| -rw-r--r-- | sys/kern/kern_exec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index e6364bf17708..8f64cf41547b 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -843,8 +843,10 @@ exec_new_vmspace(imgp, sv) vm_map_max(map) == sv->sv_maxuser) { if (vmspace->vm_shm) shmexit(p); + vm_page_lock_queues(); pmap_remove_pages(vmspace_pmap(vmspace), vm_map_min(map), vm_map_max(map)); + vm_page_unlock_queues(); vm_map_remove(map, vm_map_min(map), vm_map_max(map)); } else { vmspace_exec(p, sv->sv_minuser, sv->sv_maxuser); |
