Mike Kaplinskiy : server: Don't delay events, we simply shouldn' t send them in the first place.

Alexandre Julliard julliard at winehq.org
Wed Jul 28 10:45:12 CDT 2010


Module: wine
Branch: master
Commit: 93db86a7e026645007e37f23725546612e4de5c8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=93db86a7e026645007e37f23725546612e4de5c8

Author: Mike Kaplinskiy <mike.kaplinskiy at gmail.com>
Date:   Tue Jul 27 00:16:24 2010 -0400

server: Don't delay events, we simply shouldn't send them in the first place.

---

 server/sock.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/server/sock.c b/server/sock.c
index 36f6c7a..44422ad 100644
--- a/server/sock.c
+++ b/server/sock.c
@@ -260,9 +260,7 @@ static void sock_wake_up( struct sock *sock )
     unsigned int events = sock->pmask & sock->mask;
     int i;
 
-    /* Do not signal events if there are still pending asynchronous IO requests */
-    /* We need this to delay FD_CLOSE events until all pending overlapped requests are processed */
-    if ( !events || async_queued( sock->read_q ) || async_queued( sock->write_q ) ) return;
+    if ( !events ) return;
 
     if (sock->event)
     {




More information about the wine-cvs mailing list