summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2023-01-27 20:02:58 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2023-01-27 21:15:57 +0000
commitdbb05434c6730ae4a13d5879f6df652d93cd6019 (patch)
tree5dec6fb665fdf48de904ac99bb787d4a5bb14d54 /src
parentf108ec74c278b14363dc9ad1274596f284d21868 (diff)
downloadexim4-dbb05434c6730ae4a13d5879f6df652d93cd6019.tar.gz
Docs: add note on daemon shutdown
Diffstat (limited to 'src')
-rw-r--r--src/src/exim.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/src/exim.c b/src/src/exim.c
index 9072ffd54..c5de167c6 100644
--- a/src/src/exim.c
+++ b/src/src/exim.c
@@ -1923,6 +1923,7 @@ signal(SIGSEGV, segv_handler); /* log faults */
/* If running in a dockerized environment, the TERM signal is only
delegated to the PID 1 if we request it by setting an signal handler */
+
if (getpid() == 1) signal(SIGTERM, term_handler);
/* SIGHUP is used to get the daemon to reconfigure. It gets set as appropriate