aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/actions/sys_exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/syscall/actions/sys_exit.c')
-rw-r--r--src/kernel/syscall/actions/sys_exit.c2
1 files changed, 1 insertions, 1 deletions
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