diff --git a/src/thread/thread.c b/src/thread/thread.c index bda3397..fa7ef59 100644 --- a/src/thread/thread.c +++ b/src/thread/thread.c @@ -147,6 +147,7 @@ void thread_exit(void *retval) { running->status |= FINISHED; running->retvalue = retval; thread_yield(); + exit(0); } int thread_mutex_init(thread_mutex_t *mutex) {