diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:48:40 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:48:40 +0000 |
commit | 9db1a6bef5a0f7d3a0ed80a1367649bbaae02e2a (patch) | |
tree | 62ade79aeb6624ee462840b6fdd4a26383aa9bbe /exec/main.c | |
parent | 7bacbba638af0771383ad039f635261ebb177e2e (diff) | |
download | hurd-9db1a6bef5a0f7d3a0ed80a1367649bbaae02e2a.tar.gz hurd-9db1a6bef5a0f7d3a0ed80a1367649bbaae02e2a.tar.bz2 hurd-9db1a6bef5a0f7d3a0ed80a1367649bbaae02e2a.zip |
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* core.c (core_dump_task): Use munmap instead of vm_deallocate,
when it's from our own task.
* elfcore.c: Likewise.
* exec.c (load_section): Likewise.
(map): Likewise.
(close_exec_stream): Likewise.
(finish_mapping): Likewise.
(load): Likewise.
(do_exec): Likewise.
(S_exec_setexecdata): Likewise.
* hashexec.c (check_hashbang): Likewise.
* main.c (deadboot): Likewise.
Diffstat (limited to 'exec/main.c')
-rw-r--r-- | exec/main.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/exec/main.c b/exec/main.c index d52e8817..3a9ce2c8 100644 --- a/exec/main.c +++ b/exec/main.c @@ -1,6 +1,6 @@ /* GNU Hurd standard exec server, main program and server mechanics. - Copyright (C) 1992, 93, 94, 95, 96, 97, 98 Free Software Foundation, Inc. + Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 1999 Free Software Foundation, Inc. Written by Roland McGrath. This file is part of the GNU Hurd. @@ -75,21 +75,15 @@ deadboot (void *p) struct bootinfo *boot = p; size_t i; - vm_deallocate (mach_task_self (), - (vm_address_t) boot->argv, boot->argvlen); - vm_deallocate (mach_task_self (), - (vm_address_t) boot->envp, boot->envplen); + munmap (boot->argv, boot->argvlen); + munmap (boot->envp, boot->envplen); for (i = 0; i < boot->dtablesize; ++i) mach_port_deallocate (mach_task_self (), boot->dtable[i]); for (i = 0; i < boot->nports; ++i) mach_port_deallocate (mach_task_self (), boot->portarray[i]); - vm_deallocate (mach_task_self (), - (vm_address_t) boot->portarray, - boot->nports * sizeof (mach_port_t)); - vm_deallocate (mach_task_self (), - (vm_address_t) boot->intarray, - boot->nints * sizeof (int)); + munmap (boot->portarray, boot->nports * sizeof (mach_port_t)); + munmap (boot->intarray, boot->nints * sizeof (int)); /* See if we are going away and this was the last thing keeping us up. */ if (ports_count_class (trivfs_cntl_portclasses[0]) == 0) |