Fix bug where ECONNABORTED would have always occured on asocket_write.

Use POLLOUT for writes. Duh.
This commit is contained in:
Nick Pelly 2009-05-22 09:09:34 -07:00
parent 92a7541bce
commit 111bfcefc3
1 changed files with 1 additions and 1 deletions

View File

@ -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);