diff options
author | sotech117 <michael_foiani@brown.edu> | 2024-02-20 19:49:59 +0000 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2024-02-20 19:49:59 +0000 |
commit | 9c90e73fda0d5df2e1f11b32d459d3bb07a63192 (patch) | |
tree | 29272e6765eca78d6a5a9a7c23ec435eaa138d64 /kernel/proc/kthread.c | |
parent | d0c413bd585e5dc1ee2fc2bc8b4af110ef5900c6 (diff) |
small conceptual issue with retvals when threads are cancelled. will ask
Diffstat (limited to 'kernel/proc/kthread.c')
-rw-r--r-- | kernel/proc/kthread.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/proc/kthread.c b/kernel/proc/kthread.c index fa447ae..d066dac 100644 --- a/kernel/proc/kthread.c +++ b/kernel/proc/kthread.c @@ -162,14 +162,12 @@ void kthread_cancel(kthread_t *thr, void *retval) // NOT_YET_IMPLEMENTED("PROCS: kthread_cancel"); KASSERT(thr != curthr); - // TODO: ask about the use of check_curthr_cancelled() in syscall_handler() + // FIXME: ask about the use of check_curthr_cancelled() in syscall_handler() int status = (int) retval; dbg(DBG_THR, "Cancelling thread with proc name=%s, id=%d, status=%d\n", thr->kt_proc->p_name, thr->kt_proc->p_pid, status); thr->kt_retval = retval; sched_cancel(thr); - - //check_curthr_cancelled(); } /* |