Sebastian Lackner : server: Close fd if there is no space in thread inflight fd list.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 17 07:43:45 CST 2014


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

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Sat Nov 15 01:04:29 2014 +0100

server: Close fd if there is no space in thread inflight fd list.

---

 server/thread.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/server/thread.c b/server/thread.c
index 50d6940..97860ee 100644
--- a/server/thread.c
+++ b/server/thread.c
@@ -1047,6 +1047,8 @@ int thread_add_inflight_fd( struct thread *thread, int client, int server )
             thread->inflight[i].server = server;
             return i;
         }
+
+    close( server );
     return -1;
 }
 




More information about the wine-cvs mailing list