summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 157c347..5b79149 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: kern_exec.c,v 1.4 1994/08/18 22:34:59 wollman Exp $
+ * $Id: kern_exec.c,v 1.5 1994/08/24 10:53:53 davidg Exp $
*/
#include <sys/param.h>
@@ -338,6 +338,8 @@ exec_new_vmspace(iparams)
iparams->vmspace_destroyed = 1;
/* Blow away entire process VM */
+ if (vmspace->vm_shm)
+ shmexit(iparams->proc);
vm_deallocate(&vmspace->vm_map, 0, USRSTACK);
/* Allocate a new stack */
OpenPOWER on IntegriCloud