FastCGI Developer's Kit README
------------------------------
- $Id: README,v 1.23 2003/06/22 00:51:26 robs Exp $
+ $Id: README,v 1.24 2004/01/31 17:47:06 robs Exp $
Copyright (c) 1996 Open Market, Inc.
See the file "LICENSE.TERMS" for information on usage and redistribution
of this file, and for a DISCLAIMER OF ALL WARRANTIES.
on http://fastcgi.com/.
2.4.1
+-----
+
+ *) [WIN32] Raise SIGTERM from the ShutdownRequestThread to emulate
+ the Unix behaviour. Dan [mail@daniel-albert.de]
*) Fix fcgi_streambuf::underflow() such that when there is no buffer
the character isn't removed. AIDA Shinra <shinra@j10n.org>
* significantly more enjoyable.)
*/
#ifndef lint
-static const char rcsid[] = "$Id: os_win32.c,v 1.34 2003/06/22 00:16:43 robs Exp $";
+static const char rcsid[] = "$Id: os_win32.c,v 1.35 2004/01/31 17:47:07 robs Exp $";
#endif /* not lint */
#define WIN32_LEAN_AND_MEAN
#include <stdio.h>
#include <sys/timeb.h>
#include <process.h>
+#include <signal.h>
#define DLLAPI __declspec(dllexport)
shutdownPending = TRUE;
+ // emulate the unix behaviour
+ raise(SIGTERM);
+
if (listenType == FD_PIPE_SYNC)
{
// Its a hassle to get ConnectNamedPipe to return early,