diff options
Diffstat (limited to 'libcutils')
| -rw-r--r-- | libcutils/abort_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcutils/abort_socket.c b/libcutils/abort_socket.c index d732142f..6a5e5e46 100644 --- a/libcutils/abort_socket.c +++ b/libcutils/abort_socket.c @@ -239,7 +239,7 @@ int asocket_write(struct asocket *s, const void *buf, size_t count, } if (pfd[0].revents) { - if (pfd[0].revents & POLLIN) { + if (pfd[0].revents & POLLOUT) { /* ready to write() without blocking */ do { ret = write(s->fd, buf, count); |
