From 9c586b1fba0670ae02970190002f978f1b36011e Mon Sep 17 00:00:00 2001 From: Alessandre Laguierce Date: Thu, 20 Mar 2025 21:27:37 +0100 Subject: [PATCH] fix: return in noreturn function --- src/thread/thread.c | 1 + 1 file changed, 1 insertion(+) 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) {