From 9db1a6bef5a0f7d3a0ed80a1367649bbaae02e2a Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sat, 3 Jul 1999 23:48:40 +0000 Subject: 1999-07-03 Thomas Bushnell, BSG * 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. --- exec/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'exec/core.c') 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; } -- cgit v1.2.3