aboutsummaryrefslogtreecommitdiffstats
path: root/libcutils
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2009-05-22 09:09:34 -0700
committerNick Pelly <npelly@google.com>2009-05-29 16:10:22 -0700
commitfa5bf90831dbf7a650eb318e2171a25731743104 (patch)
tree25edc0cbe87c7223e603d0a667633020d4c6671c /libcutils
parent260f48a917c9ff439fc2db2e3492be643d189d22 (diff)
downloadsystem_core-fa5bf90831dbf7a650eb318e2171a25731743104.tar.gz
system_core-fa5bf90831dbf7a650eb318e2171a25731743104.tar.bz2
system_core-fa5bf90831dbf7a650eb318e2171a25731743104.zip
Fix bug where ECONNABORTED would have always occured on asocket_write.
Use POLLOUT for writes. Duh.
Diffstat (limited to 'libcutils')
-rw-r--r--libcutils/abort_socket.c2
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);