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:
Josef Söntgen 2012-09-13 16:28:04 +02:00 committed by Norman Feske
parent 97308f963a
commit 83dd1640fc

View File

@ -163,6 +163,9 @@ bool Noux::Child::syscall(Noux::Session::Syscall sc)
_block_for_io_channel(io);
io->read(_sysio);
if (_sysio->read_out.count == -1)
return false;
return true;
}