commit | 111bfcefc3cf0f14ad607a56fcf5d076131833a9 | [log] [tgz] |
---|---|---|
author | Nick Pelly <npelly@google.com> | Fri May 22 09:09:34 2009 -0700 |
committer | Nick Pelly <npelly@google.com> | Fri May 22 09:09:34 2009 -0700 |
tree | 7fdd48d1632970d4be7b99befb7cf4015a792f40 | |
parent | 92a7541bce0f8ed7649dcbadd83b27d71e4f391f [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);