liblaunch: add task creation flags for use by fork and posix_spawn
This commit is contained in:
@@ -123,8 +123,15 @@ enum launch_status launch_ctx_execute(
|
||||
size_t name_len = params->p_task_name ? strlen(params->p_task_name) : 0;
|
||||
kern_handle_t remote_task = KERN_HANDLE_INVALID,
|
||||
remote_address_space = KERN_HANDLE_INVALID;
|
||||
task_flags_t task_flags = TASK_F_DEFAULT;
|
||||
|
||||
if (flags & LAUNCH_F_CLONE_ALL_HANDLES) {
|
||||
task_flags |= TASK_F_CLONE_ALL_HANDLES;
|
||||
}
|
||||
|
||||
kstatus = task_create(
|
||||
params->p_parent_task,
|
||||
task_flags,
|
||||
params->p_task_name,
|
||||
name_len,
|
||||
&remote_task,
|
||||
|
||||
Reference in New Issue
Block a user