Mercurial > dovecot > core-2.2
changeset 3643:5207179e47de HEAD
Don't crash with SIGHUP/SIGUSR2 if auth_cache isn't used
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 07 Oct 2005 13:22:47 +0300 |
parents | aab106e80c3c |
children | 6a94b8412638 |
files | src/auth/main.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/main.c Fri Oct 07 12:42:35 2005 +0300 +++ b/src/auth/main.c Fri Oct 07 13:22:47 2005 +0300 @@ -205,6 +205,10 @@ lib_signals_set_handler(SIGTERM, TRUE, sig_die, NULL); lib_signals_set_handler(SIGPIPE, FALSE, NULL, NULL); + /* If auth caches aren't used, just ignore these signals */ + lib_signals_set_handler(SIGHUP, FALSE, NULL, NULL); + lib_signals_set_handler(SIGUSR2, FALSE, NULL, NULL); + mech_init(); auth_init(auth); auth_request_handler_init();