if (kr != KERN_SUCCESS) {
goto error_task_generate_corpse;
}
/* Create and copy threads from task, returns a ref to thread */
kr = task_duplicate_map_and_threads(task, p, new_task, &thread,
if (kr != KERN_SUCCESS) {
goto error_task_generate_corpse;
}
/* Create and copy threads from task, returns a ref to thread */
kr = task_duplicate_map_and_threads(task, p, new_task, &thread,