summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-12-12 16:10:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-12-12 16:10:49 +0000
commit4bf2526f886d71a067a1004ee5be2b75d0f721f7 (patch)
tree6d07da5e11537220569c748c2af66ae9db991d15 /src/util
parentReleasing progress-linux version 3.9.0-2~progress7.99u1. (diff)
downloadpostfix-4bf2526f886d71a067a1004ee5be2b75d0f721f7.tar.xz
postfix-4bf2526f886d71a067a1004ee5be2b75d0f721f7.zip
Merging upstream version 3.9.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/msg_logger.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/msg_logger.c b/src/util/msg_logger.c
index 07c9e92..2d813d3 100644
--- a/src/util/msg_logger.c
+++ b/src/util/msg_logger.c
@@ -59,6 +59,9 @@
/* Override the fallback setting (see above) with the specified
/* function pointer. This remains in effect until the next
/* msg_logger_init() or msg_logger_control() call.
+/* When the function is called with a null argument, it should
+/* allocate resources immediately. This is needed in programs
+/* that drop privileges after process initialization.
/* .IP CA_MSG_LOGGER_CTL_DISABLE
/* Disable the msg_logger. This remains in effect until the
/* next msg_logger_init() call.
@@ -320,6 +323,9 @@ void msg_logger_control(int name,...)
msg_logger_disconnect();
if (MSG_LOGGER_NEED_SOCKET())
msg_logger_connect();
+ if (msg_logger_sock == MSG_LOGGER_SOCK_NONE
+ && msg_logger_fallback_fn)
+ msg_logger_fallback_fn((char *) 0);
break;
default:
msg_panic("%s: bad name %d", myname, name);