syscall: reorganize blocking for IO syscalls

This commit is contained in:
Michael Shaw 2024-06-13 19:13:19 -04:00
commit b3d8f928a9
3 changed files with 6 additions and 10 deletions

View file

@ -163,7 +163,7 @@ void proc_unblock(pid_t pid)
if (proc) {
spinlock_acquire(&proc->lock);
proc->state = PROC_BLOCKED;
proc->state = PROC_STOPPED;
spinlock_release(&proc->lock);
}
}