INN commit: trunk/innd (chan.c)
INN Commit
rra at isc.org
Mon Nov 9 21:18:27 UTC 2020
Date: Monday, November 9, 2020 @ 13:18:25
Author: iulius
Revision: 10392
innd: make SIGTERM behave exactly like "ctlinnd shutdown"
Patch from Marco d'Itri.
Modified:
trunk/innd/chan.c
--------+
chan.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
Modified: chan.c
===================================================================
--- chan.c 2020-11-09 20:36:41 UTC (rev 10391)
+++ chan.c 2020-11-09 21:18:25 UTC (rev 10392)
@@ -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