From e350804dc78ab01aaca6aba33792a652535028d9 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 9 May 2020 22:30:46 +0200 Subject: Sooooooo many race conditions NEXT: SPINLOCKS! --- src/kernel/syscall/actions/sys_exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/syscall/actions/sys_exit.c') diff --git a/src/kernel/syscall/actions/sys_exit.c b/src/kernel/syscall/actions/sys_exit.c index 98e0c34..eb019ab 100644 --- a/src/kernel/syscall/actions/sys_exit.c +++ b/src/kernel/syscall/actions/sys_exit.c @@ -3,6 +3,6 @@ u32 sys_exit(u32 code) { - current_proc->state = PROC_ASLEEP; + process_suspend(current_proc->pid); return code; } \ No newline at end of file -- cgit v1.2.3