• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/corennnnn


Commit MetaInfo

修订版111bfcefc3cf0f14ad607a56fcf5d076131833a9 (tree)
时间2009-05-23 01:09:34
作者Nick Pelly <npelly@goog...>
CommiterNick Pelly

Log Message

Fix bug where ECONNABORTED would have always occured on asocket_write.

Use POLLOUT for writes. Duh.

更改概述

差异

--- 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,
239239 }
240240
241241 if (pfd[0].revents) {
242- if (pfd[0].revents & POLLIN) {
242+ if (pfd[0].revents & POLLOUT) {
243243 /* ready to write() without blocking */
244244 do {
245245 ret = write(s->fd, buf, count);