]> granicus.if.org Git - libevent/commitdiff
change write to send for windows.
authorNiels Provos <provos@gmail.com>
Tue, 24 Jun 2008 15:29:41 +0000 (15:29 +0000)
committerNiels Provos <provos@gmail.com>
Tue, 24 Jun 2008 15:29:41 +0000 (15:29 +0000)
svn:r859

event.c

diff --git a/event.c b/event.c
index 676dd0861160a1f56e881a0acfd32131aee58dc1..a17dd6228da90d97d6d9f028064e53ad687a8474 100644 (file)
--- a/event.c
+++ b/event.c
@@ -1120,8 +1120,8 @@ event_del_internal(struct event *ev)
 
        /* if we are not in the right thread, we need to wake up the loop */
        if (res != -1 && !EVTHREAD_IN_THREAD(base))
-               write(base->th_notify_fd[1], "", 1);
-
+               send(base->th_notify_fd[1], "", 1, 0);
+       
        return (res);
 }