diff options
author | sotech117 <michael_foiani@brown.edu> | 2024-02-11 01:09:52 -0500 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2024-02-11 01:09:52 -0500 |
commit | c71b9e406a8fb7bfcaeb20ee787d6eb4a1cbb71d (patch) | |
tree | bc4063c436b6d37bb44c3b40c82a68218e590ddd /kernel/proc/proc.c | |
parent | 9aa2e2f4708a104ed2db2e28cc10b061fb711569 (diff) |
work on proc. local development container fix.
Diffstat (limited to 'kernel/proc/proc.c')
-rw-r--r-- | kernel/proc/proc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/proc/proc.c b/kernel/proc/proc.c index 9837a8a..6155b58 100644 --- a/kernel/proc/proc.c +++ b/kernel/proc/proc.c @@ -334,8 +334,14 @@ void proc_kill_all() // TODO: consider children on children list_iterate(&proc_initproc->p_children, thr, kthread_t, kt_plink) { - + if(&thr->kt_proc != curproc) + { + kthread_cancel(thr, 0); + } } + + // kill the current proc + do_exit(0); } /* |