system/corennnnn
修订版 | 111bfcefc3cf0f14ad607a56fcf5d076131833a9 (tree) |
---|---|
时间 | 2009-05-23 01:09:34 |
作者 | Nick Pelly <npelly@goog...> |
Commiter | Nick Pelly |
Fix bug where ECONNABORTED would have always occured on asocket_write.
Use POLLOUT for writes. Duh.
@@ -239,7 +239,7 @@ int asocket_write(struct asocket *s, const void *buf, size_t count, | ||
239 | 239 | } |
240 | 240 | |
241 | 241 | if (pfd[0].revents) { |
242 | - if (pfd[0].revents & POLLIN) { | |
242 | + if (pfd[0].revents & POLLOUT) { | |
243 | 243 | /* ready to write() without blocking */ |
244 | 244 | do { |
245 | 245 | ret = write(s->fd, buf, count); |