summaryrefslogtreecommitdiff
path: root/kernel/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/syscall.c')
-rw-r--r--kernel/syscall.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/syscall.c b/kernel/syscall.c
index 94eec36..16eb243 100644
--- a/kernel/syscall.c
+++ b/kernel/syscall.c
@@ -186,6 +186,7 @@ static int sys_sleep(void)
WARN("sleep pcb insert failed");
return 1;
}
+ pcb->state = PROC_STATE_SLEEPING;
// calling pcb is in sleeping queue,
// we must call a new one