summaryrefslogtreecommitdiff
path: root/libpipe
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-03 23:51:36 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-03 23:51:36 +0000
commitb393ef99cfca111589793d0cf469184cc149918b (patch)
tree997b53df978b1c4d7af68cc0045f1db6bac08be6 /libpipe
parentf3e41afcc2e04bad2016382f70c4f4c066dc9ded (diff)
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* pq.c (free_packets): Use munmap instead of vm_deallocate.
Diffstat (limited to 'libpipe')
-rw-r--r--libpipe/ChangeLog4
-rw-r--r--libpipe/pq.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/libpipe/ChangeLog b/libpipe/ChangeLog
index c95d471f..41347672 100644
--- a/libpipe/ChangeLog
+++ b/libpipe/ChangeLog
@@ -1,3 +1,7 @@
+1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * pq.c (free_packets): Use munmap instead of vm_deallocate.
+
1998-10-20 Roland McGrath <roland@baalperazim.frob.com>
* pq.c (free_packets): Add braces to silence gcc warning.
diff --git a/libpipe/pq.c b/libpipe/pq.c
index 9f8ab7ed..d5aaf719 100644
--- a/libpipe/pq.c
+++ b/libpipe/pq.c
@@ -1,6 +1,6 @@
/* Packet queues
- Copyright (C) 1995, 1996, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -54,8 +54,7 @@ free_packets (struct packet *head)
if (head->buf_len > 0)
{
if (head->buf_vm_alloced)
- vm_deallocate (mach_task_self (),
- (vm_address_t)head->buf, head->buf_len);
+ munmap (head->buf, head->buf_len);
else
free (head->buf);
}