mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 14:13:09 +00:00
Noux: fix SYSCALL_READ return value
There is an error if reading from a Io_channel returns -1. In this case the syscall should fail. Fixes #356.
This commit is contained in:
parent
97308f963a
commit
83dd1640fc
@ -163,6 +163,9 @@ bool Noux::Child::syscall(Noux::Session::Syscall sc)
|
|||||||
_block_for_io_channel(io);
|
_block_for_io_channel(io);
|
||||||
|
|
||||||
io->read(_sysio);
|
io->read(_sysio);
|
||||||
|
if (_sysio->read_out.count == -1)
|
||||||
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user