From 6195be3158014b09490189d4c5b34261b7166b11 Mon Sep 17 00:00:00 2001 From: robs Date: Sat, 23 Feb 2002 21:31:19 +0000 Subject: [PATCH] [WIN32] Don't set the OVERLAPPED_IO flag on NamedPipe listen HANDLEs - setting it was just plain broken. [WIN32] Fix the accept mutex - all applications were sharing one!? --- CHANGES | 5 +++++ fcgi_pm.c | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGES b/CHANGES index cffd50c..631fa0e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,10 @@ 2.2.13 + *) [WIN32] Don't set the OVERLAPPED_IO flag on NamedPipe listen HANDLEs - + setting it was just plain broken. + + *) [WIN32] Fix the accept mutex - all applications were sharing one!? + *) Fix 'FastCgiConfig -autoUpdate'. *) Fix 'FastCgiConfig -flush'. diff --git a/fcgi_pm.c b/fcgi_pm.c index 7ab8711..3eb0624 100644 --- a/fcgi_pm.c +++ b/fcgi_pm.c @@ -1,5 +1,5 @@ /* - * $Id: fcgi_pm.c,v 1.67 2002/02/16 03:18:11 robs Exp $ + * $Id: fcgi_pm.c,v 1.68 2002/02/23 21:31:19 robs Exp $ */ @@ -420,7 +420,7 @@ FailedSystemCallExit: sa.nLength = sizeof(sa); listen_handle = CreateNamedPipe(fs->socket_path, - PIPE_ACCESS_DUPLEX | FILE_FLAG_OVERLAPPED, + PIPE_ACCESS_DUPLEX, PIPE_TYPE_BYTE | PIPE_READMODE_BYTE | PIPE_WAIT, PIPE_UNLIMITED_INSTANCES, 4096, 4096, 0, &sa); @@ -430,8 +430,6 @@ FailedSystemCallExit: "FastCGI: can't exec server \"%s\", CreateNamedPipe() failed", fs->fs_path); exit(0); } - -// SetHandleInformation(listen_handle, HANDLE_FLAG_INHERIT, TRUE); } else { @@ -823,7 +821,7 @@ static void dynamic_read_msgs(int read_ready) { #ifdef WIN32 - HANDLE mutex = CreateMutex(NULL, FALSE, "cjob->fs_path"); + HANDLE mutex = CreateMutex(NULL, FALSE, cjob->fs_path); if (mutex == NULL) { -- 2.11.4.GIT