From 216a7062272363a9e476d216467f1e6ffd5aed49 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Fri, 17 Mar 2000 17:19:38 +0000 Subject: 2000-03-17 Thomas Bushnell, BSG * main.c (S_exec_init): Don't use MOVE_SEND in Hurd RPC. --- exec/main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'exec/main.c') diff --git a/exec/main.c b/exec/main.c index 033f7f0f..d366d960 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, 1999 Free Software Foundation, Inc. + Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 1999, 2000 Free Software Foundation, Inc. Written by Roland McGrath. This file is part of the GNU Hurd. @@ -228,13 +228,16 @@ S_exec_init (struct trivfs_protid *protid, initial boot-time canonical sets. */ { struct trivfs_protid *cred; + mach_port_t right; + err = trivfs_open (fsys, iohelp_create_iouser (make_idvec (), make_idvec ()), 0, MACH_PORT_NULL, &cred); assert_perror (err); - proc_execdata_notify (procserver, ports_get_right (cred), - MACH_MSG_TYPE_MAKE_SEND); + right = ports_get_send_right (cred); + proc_execdata_notify (procserver, right, MACH_MSG_TYPE_COPY_SEND); + mach_port_deallocate (mach_task_self (), right); } err = get_privileged_ports (&host_priv, NULL); -- cgit v1.2.3