syscall: reorganize blocking for IO syscalls
This commit is contained in:
parent
c0f6d7ff50
commit
b3d8f928a9
3 changed files with 6 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue