diff options
author | Thomas Bushnell <thomas@gnu.org> | 2000-03-17 17:19:38 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 2000-03-17 17:19:38 +0000 |
commit | 216a7062272363a9e476d216467f1e6ffd5aed49 (patch) | |
tree | b02dea26e95345ee4dfe88923f352f7f5e2f7c6e /exec/main.c | |
parent | 146baae9487e0cf6f837690f2134c741233a6d36 (diff) | |
download | hurd-216a7062272363a9e476d216467f1e6ffd5aed49.tar.gz hurd-216a7062272363a9e476d216467f1e6ffd5aed49.tar.bz2 hurd-216a7062272363a9e476d216467f1e6ffd5aed49.zip |
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.c | 9 |
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); |