INN commit: branches/2.6/innd (chan.c)

INN Commit rra at isc.org
Thu Nov 12 20:25:03 UTC 2020


    Date: Thursday, November 12, 2020 @ 12:25:02
  Author: iulius
Revision: 10400

innd: make SIGTERM behave exactly like "ctlinnd shutdown"

Patch from Marco d'Itri.

Modified:
  branches/2.6/innd/chan.c

--------+
 chan.c |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Modified: chan.c
===================================================================
--- chan.c	2020-11-12 20:24:35 UTC (rev 10399)
+++ chan.c	2020-11-12 20:25:02 UTC (rev 10400)
@@ -1195,7 +1195,13 @@
 
         STATUSmainloophook();
         if (GotTerminate) {
-            warn("%s exiting due to signal", LogName);
+#ifdef DO_PERL
+            PLmode(Mode, OMshutdown, (char *) "exiting due to signal");
+#endif
+#ifdef DO_PYTHON
+            PYmode(Mode, OMshutdown, (char *) "exiting due to signal");
+#endif
+            notice("%s exiting due to signal", LogName);
             CleanupAndExit(0, NULL);
         }
 



More information about the inn-committers mailing list