Created
November 16, 2009 07:40
-
-
Save kovyrin/235828 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/searchd.cpp | |
=================================================================== | |
--- src/searchd.cpp (revision 2028) | |
+++ src/searchd.cpp (working copy) | |
@@ -990,7 +990,7 @@ | |
void sigterm ( int ) | |
{ | |
// in child, bail out immediately | |
- if ( !g_bHeadDaemon && g_bAcceptUnlocked ) | |
+ if ( !g_bHeadDaemon && g_bAcceptUnlocked && g_eWorkers != MPM_PREFORK ) | |
exit ( 0 ); | |
// in head or (possibly) locked preforked child, perform clean shutdown |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment