Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kovyrin/235828 to your computer and use it in GitHub Desktop.
Save kovyrin/235828 to your computer and use it in GitHub Desktop.
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