summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2010-10-14 05:07:04 +0000
committerroot <root>2010-10-14 05:07:04 +0000
commit5b02ac59349379c56dc2025ea1d1f91ff8688c06 (patch)
tree6ff096d3ca1d1e0917d1fbde257e4587ae034de6 /ev.c
parent4a96bcc15a2aaffc5cf3ba07eefbfec66a704a80 (diff)
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index c023764..81bbd88 100644
--- a/ev.c
+++ b/ev.c
@@ -1283,6 +1283,11 @@ evpipe_write (EV_P_ EV_ATOMIC_T *flag)
}
else
#endif
+ /* win32 people keep sending patches that change this write() to send() */
+ /* and then run away. but send() is wrong, it wants a socket handle on win32 */
+ /* so when you think this write should be a send instead, please find out */
+ /* where your send() is from - it's definitely not the microsoft send, and */
+ /* tell me. thank you. */
write (evpipe [1], &dummy, 1);
errno = old_errno;
@@ -1306,6 +1311,7 @@ pipecb (EV_P_ ev_io *iow, int revents)
#endif
{
char dummy;
+ /* see discussion in evpipe_write when you think this read should be recv in win32 */
read (evpipe [0], &dummy, 1);
}