diff options
author | Roland McGrath <roland@gnu.org> | 2001-08-17 19:50:27 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-08-17 19:50:27 +0000 |
commit | d348b4d5a44f55119bfcc960a677f3c5bbf2ff52 (patch) | |
tree | afddc7dc38f8631881a2014e6854775400e66648 /boot | |
parent | b0f31e3cb5982b3f90290989ec9c87747de5e25b (diff) |
2001-08-17 Neal H Walfield <neal@cs.uml.edu>
* userland-boot.c (boot_script_task_create): Suspend the newly
created task as the protocol requires.
(boot_script_insert_right): Fix the error message.
Diffstat (limited to 'boot')
-rw-r--r-- | boot/userland-boot.c | 8 |
1 files changed, 7 insertions, 1 deletions
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; |