libc: return true on writefd checks in select on sockets

Instead of files we have to check this condition on sockets but
technically our sockets are regular files as well...
This commit is contained in:
Josef Söntgen 2017-05-18 17:00:52 +02:00 committed by Christian Helmuth
parent dbec8d7710
commit b361de8379
1 changed files with 1 additions and 1 deletions

View File

@ -889,7 +889,7 @@ int Socket_fs::Plugin::select(int nfds,
}
if (FD_ISSET(fd, &in_writefds)) {
if (false /* XXX ask if "data" is writeable */) {
if (true /* XXX ask if "data" is writeable */) {
FD_SET(fd, writefds);
++nready;
}