diff options
-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; |