diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-06-23 09:44:30 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-06-23 09:44:30 +0000 |
commit | eaa0c2c3bca10b1b334eb58cb246ad50b3a2b0c2 (patch) | |
tree | 2125993b9deb4a4409a6b2612995956a56b25356 /sys/kern/kern_exec.c | |
parent | d9af5e26bd7d654327cb908dcc68a8b7562e98ad (diff) |
Improved sysv shared memory. Works with UVM.
Original work done in FreeBSD, but this code was ported from NetBSD by
Chuck Cranor.
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 1c21b47cae8..f3d019fec0d 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exec.c,v 1.28 1999/06/03 16:01:26 deraadt Exp $ */ +/* $OpenBSD: kern_exec.c,v 1.29 1999/06/23 09:44:28 art Exp $ */ /* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */ /*- @@ -387,7 +387,7 @@ sys_execve(p, v, retval) /* Kill shared memory and unmap old program */ #ifdef SYSVSHM if (vm->vm_shm) - shmexit(p); + shmexit(vm); #endif vm_deallocate(&vm->vm_map, VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS - VM_MIN_ADDRESS); |