commit | fa5bf90831dbf7a650eb318e2171a25731743104 | [log] [tgz] |
---|---|---|
author | Nick Pelly <npelly@google.com> | Fri May 22 09:09:34 2009 -0700 |
committer | Nick Pelly <npelly@google.com> | Fri May 29 16:10:22 2009 -0700 |
tree | 25edc0cbe87c7223e603d0a667633020d4c6671c | |
parent | 260f48a917c9ff439fc2db2e3492be643d189d22 [diff] |
Fix bug where ECONNABORTED would have always occured on asocket_write. Use POLLOUT for writes. Duh.
diff --git a/libcutils/abort_socket.c b/libcutils/abort_socket.c index d732142..6a5e5e4 100644 --- a/libcutils/abort_socket.c +++ b/libcutils/abort_socket.c
@@ -239,7 +239,7 @@ } 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);