summaryrefslogtreecommitdiff
path: root/libdiskfs/boot-start.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>2000-03-17 17:21:02 +0000
committerThomas Bushnell <thomas@gnu.org>2000-03-17 17:21:02 +0000
commited1d3f38812f06fcc85ff3fc60785b2193fa08a5 (patch)
tree04b5b9afee694f2aa16f15d5693c6b452acd0a19 /libdiskfs/boot-start.c
parentbde9c6f42327e37103f1fdd5381438536005b701 (diff)
2000-03-17 Thomas Bushnell, BSG <tb@mit.edu>
* boot-start.c (diskfs_S_fsys_init, diskfs_start_bootstrap): Don't use MOVE_SEND in Hurd RPC. * file-exec.c (diskfs_S_file_exec): Don't use MAKE_SEND in Hurd RPC. * init-startup.c (diskfs_startup_diskfs, _diskfs_init_completed): Likewise.
Diffstat (limited to 'libdiskfs/boot-start.c')
-rw-r--r--libdiskfs/boot-start.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c
index 2b357541..829994d1 100644
--- a/libdiskfs/boot-start.c
+++ b/libdiskfs/boot-start.c
@@ -181,7 +181,8 @@ diskfs_start_bootstrap ()
assert (retry_name[0] == '\0');
assert (execnode != MACH_PORT_NULL);
err = file_set_translator (execnode, 0, FS_TRANS_SET, 0, 0, 0,
- diskfs_exec_ctl, MACH_MSG_TYPE_MOVE_SEND);
+ diskfs_exec_ctl, MACH_MSG_TYPE_COPY_SEND);
+ mach_port_deallocate (mach_task_self (), diskfs_exec_ctl);
mach_port_deallocate (mach_task_self (), execnode);
assert_perror (err);
}
@@ -546,8 +547,9 @@ diskfs_S_fsys_init (mach_port_t port,
RPC of its own, as init would have sent it. */
err = task_get_bootstrap_port (mach_task_self (), &bootstrap);
assert_perror (err);
- err = fsys_init (bootstrap, parent_proc, MACH_MSG_TYPE_MOVE_SEND,
+ err = fsys_init (bootstrap, parent_proc, MACH_MSG_TYPE_COPY_SEND,
authhandle);
+ mach_port_deallocate (mach_task_self (), parent_proc);
mach_port_deallocate (mach_task_self (), bootstrap);
assert_perror (err);
}