mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 15:32:25 +00:00
libc: always set O_RDWR in fcntl on a socket
For better or worse we have no proper way of handling this right now but contrib libraries, e.g. glib, use it to determine if they can use the underlying fd. Fxies #3265.
This commit is contained in:
parent
5af0162b3f
commit
b9e12d7c23
@ -977,7 +977,7 @@ int Socket_fs::Plugin::fcntl(Libc::File_descriptor *fd, int cmd, long arg)
|
||||
|
||||
switch (cmd) {
|
||||
case F_GETFL:
|
||||
return context->fd_flags();
|
||||
return context->fd_flags() | O_RDWR;
|
||||
case F_SETFL:
|
||||
context->fd_flags(arg);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user