From: quzar <qu...@us...> - 2024-09-17 02:51:22
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via 8e783b8ae5c54b510efa7f958aa37fa6fb17041b (commit) from b14b8d0a8f9d9949277637894be77958c4126f0a (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 8e783b8ae5c54b510efa7f958aa37fa6fb17041b Author: darcagn <da...@pr...> Date: Mon Sep 16 21:43:27 2024 -0500 Prevent thd_shutdown() from destroying kernel thread (#757) ----------------------------------------------------------------------- Summary of changes: kernel/thread/thread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/thread/thread.c b/kernel/thread/thread.c index 319149de..017279fd 100644 --- a/kernel/thread/thread.c +++ b/kernel/thread/thread.c @@ -1131,7 +1131,8 @@ void thd_shutdown(void) { /* Kill remaining live threads */ LIST_FOREACH_SAFE(cur, &thd_list, t_list, tmp) { - thd_destroy(cur); + if(cur->tid != 1) + thd_destroy(cur); } sem_destroy(&thd_reap_sem); hooks/post-receive -- A pseudo Operating System for the Dreamcast. |