explicit thread_exit () when process_start () fails

This commit is contained in:
2024-11-13 21:58:41 +00:00
parent d02b956221
commit f5e498e0a9

View File

@@ -188,6 +188,7 @@ start_process (void *proc_start_data)
fail: fail:
data->success = false; data->success = false;
sema_up (&data->loaded); sema_up (&data->loaded);
thread_exit ();
} }
/* Helper function that initializes the stack of a newly created /* Helper function that initializes the stack of a newly created