From d348b4d5a44f55119bfcc960a677f3c5bbf2ff52 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 17 Aug 2001 19:50:27 +0000 Subject: 2001-08-17 Neal H Walfield * userland-boot.c (boot_script_task_create): Suspend the newly created task as the protocol requires. (boot_script_insert_right): Fix the error message. --- boot/userland-boot.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'boot') diff --git a/boot/userland-boot.c b/boot/userland-boot.c index c053b2b8..d048c00e 100644 --- a/boot/userland-boot.c +++ b/boot/userland-boot.c @@ -46,6 +46,12 @@ boot_script_task_create (struct cmd *cmd) error (0, err, "%s: task_create", cmd->path); return BOOT_SCRIPT_MACH_ERROR; } + err = task_suspend (cmd->task); + if (err) + { + error (0, err, "%s: task_resume", cmd->path); + return BOOT_SCRIPT_MACH_ERROR; + } return 0; } @@ -88,7 +94,7 @@ boot_script_insert_right (struct cmd *cmd, mach_port_t port, mach_port_t *name) port, port, MACH_MSG_TYPE_COPY_SEND); if (err) { - error (0, err, "%s: task_resume", cmd->path); + error (0, err, "%s: mach_port_insert_right", cmd->path); return BOOT_SCRIPT_MACH_ERROR; } *name = port; -- cgit v1.2.3