server: Do not shutdown server in persistent mode when creation of first process fails.

Sebastian Lackner sebastian at fds-team.de
Sat Jun 17 18:54:16 CDT 2017


Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---

send_client_fd() will fail if the client connection does not last long enough.

 server/process.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/process.c b/server/process.c
index 1f60f607b2..e18c10073b 100644
--- a/server/process.c
+++ b/server/process.c
@@ -605,7 +605,7 @@ struct thread *create_process( int fd, struct thread *parent_thread, int inherit
  error:
     if (process) release_object( process );
     /* if we failed to start our first process, close everything down */
-    if (!running_processes) close_master_socket( 0 );
+    if (!running_processes && master_socket_timeout != TIMEOUT_INFINITE) close_master_socket( 0 );
     return NULL;
 }
 
-- 
2.13.1



More information about the wine-patches mailing list