sched: schedule after vfs_read error -EGAIN
This commit is contained in:
parent
6fdccef0ea
commit
86041e90e4
5 changed files with 28 additions and 1 deletions
|
|
@ -49,6 +49,7 @@ ssize_t sys_read(int fd, void *buf, size_t count)
|
|||
|
||||
while ((ret = vfs_read(file, tmp_buf, fdesc->pos, count)) == -EAGAIN) {
|
||||
proc->state = PROC_BLOCKED;
|
||||
schedule();
|
||||
}
|
||||
|
||||
proc->state = PROC_RUNNING;
|
||||
|
|
|
|||
Loading…
Reference in a new issue