From 111bfcefc3cf0f14ad607a56fcf5d076131833a9 Mon Sep 17 00:00:00 2001 From: Nick Pelly Date: Fri, 22 May 2009 09:09:34 -0700 Subject: [PATCH] Fix bug where ECONNABORTED would have always occured on asocket_write. Use POLLOUT for writes. Duh. --- libcutils/abort_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcutils/abort_socket.c b/libcutils/abort_socket.c index d732142f5..6a5e5e461 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);