From 166c15f084adc62b6d0411dca9f65928aee479b7 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Fri, 17 Mar 2000 17:26:16 +0000 Subject: 2000-03-17 Thomas Bushnell, BSG * symlink.c (main): Don't use MAKE_SEND in Hurd RPC. --- trans/ChangeLog | 4 ++++ trans/pump.c | 5 +++-- trans/symlink.c | 7 +++++-- 3 files changed, 12 insertions(+), 4 deletions(-) (limited to 'trans') diff --git a/trans/ChangeLog b/trans/ChangeLog index 5880a43b..7ee1db56 100644 --- a/trans/ChangeLog +++ b/trans/ChangeLog @@ -1,3 +1,7 @@ +2000-03-17 Thomas Bushnell, BSG + + * symlink.c (main): Don't use MAKE_SEND in Hurd RPC. + 2000-03-17 Roland McGrath * crash.c (S_crash_dump_task): Use ports_get_send_right. diff --git a/trans/pump.c b/trans/pump.c index a4014eca..562ce1b1 100644 --- a/trans/pump.c +++ b/trans/pump.c @@ -1,5 +1,5 @@ /* Initialize an Ethernet interface - Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1999, 2000 Free Software Foundation, Inc. Written by Thomas Bushnell, BSG. This file is part of the GNU Hurd. @@ -258,7 +258,8 @@ start_pfinet (char *argz, int argz_len) 0, FS_TRANS_SET, FSYS_GOAWAY_FORCE, argz, argz_len, - control, MACH_MSG_TYPE_MOVE_SEND); + control, MACH_MSG_TYPE_COPY_SEND); + mach_port_deallocate (mach_task_self (), control); /* Force the C library to forget about any old cached server access port. */ diff --git a/trans/symlink.c b/trans/symlink.c index 24a1a30f..6235d272 100644 --- a/trans/symlink.c +++ b/trans/symlink.c @@ -1,5 +1,5 @@ /* Translator for S_IFLNK nodes - Copyright (C) 1994 Free Software Foundation + Copyright (C) 1994, 2000 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -55,8 +55,11 @@ main (int argc, char **argv) /* Reply to our parent */ mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_RECEIVE, &control); + mach_port_insert_right (mach_task_self (), control, control, + MACH_MSG_TYPE_MAKE_SEND); error = - fsys_startup (bootstrap, 0, control, MACH_MSG_TYPE_MAKE_SEND, &realnode); + fsys_startup (bootstrap, 0, control, MACH_MSG_TYPE_COPY_SEND, &realnode); + mach_port_deallocate (mach_task_self (), control); mach_port_deallocate (mach_task_self (), bootstrap); if (error) { -- cgit v1.2.3