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/core.c | |
parent | 7bacbba638af0771383ad039f635261ebb177e2e (diff) |
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/core.c')
-rw-r--r-- | exec/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exec/core.c b/exec/core.c index 6d685a23..f79b6b08 100644 --- a/exec/core.c +++ b/exec/core.c @@ -1,5 +1,5 @@ /* GNU Hurd standard core server. - Copyright (C) 1992 Free Software Foundation, Inc. + Copyright (C) 1992, 1999 Free Software Foundation, Inc. Written by Roland McGrath. This file is part of the GNU Hurd. @@ -172,7 +172,7 @@ core_dump_task (mach_port_t coreserver, goto lose; err = bfd_set_section_contents (bfd, sec, data, 0, bfd_section_size (bfd, sec)); - vm_deallocate (mach_task_self (), data, bfd_section_size (bfd, sec)); + munmap ((caddr_t) data, bfd_section_size (bfd, sec)); if (err) goto bfdlose; } |