mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
vfs_lxip: return WRITE_ERR_WOULD_BLOCK on EAGAIN
Because all operations in lxip are non-blocking, return WRITE_ERR_WOULD_BLOCK for data writes as done by read. Note: This was not the case in the old plugin because 'write' was blocking operation there. issue #5165
This commit is contained in:
parent
309a281b14
commit
5d56340568
@ -475,10 +475,9 @@ class Vfs::Lxip_data_file final : public Vfs::Lxip_file
|
||||
|
||||
_write_err = genode_socket_sendmsg(&_sock, msg_send.header(), &bytes_sent);
|
||||
|
||||
/* TODO: propagate EAGAIN
|
||||
/* propagate EAGAIN */
|
||||
if (_write_err == GENODE_EAGAIN)
|
||||
throw Would_block();
|
||||
*/
|
||||
|
||||
return _write_err == GENODE_ENONE ? bytes_sent : -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user