summaryrefslogtreecommitdiff
path: root/exec/main.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>2000-03-17 17:19:38 +0000
committerThomas Bushnell <thomas@gnu.org>2000-03-17 17:19:38 +0000
commit216a7062272363a9e476d216467f1e6ffd5aed49 (patch)
treeb02dea26e95345ee4dfe88923f352f7f5e2f7c6e /exec/main.c
parent146baae9487e0cf6f837690f2134c741233a6d36 (diff)
2000-03-17 Thomas Bushnell, BSG <tb@mit.edu>
* main.c (S_exec_init): Don't use MOVE_SEND in Hurd RPC.
Diffstat (limited to 'exec/main.c')
-rw-r--r--exec/main.c9
1 files changed, 6 insertions, 3 deletions
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);