dovecot-2.1: ssl-params: Long-running ssl-params process shouldn...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Sep 20 04:21:40 EEST 2013
details: http://hg.dovecot.org/dovecot-2.1/rev/dc631b8b1290
changeset: 14998:dc631b8b1290
user: Timo Sirainen <tss at iki.fi>
date: Fri Sep 20 04:20:22 2013 +0300
description:
ssl-params: Long-running ssl-params process shouldn't cause Dovecot restart to fail.
diffstat:
src/ssl-params/ssl-params.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 9efbc0731929 -r dc631b8b1290 src/ssl-params/ssl-params.c
--- a/src/ssl-params/ssl-params.c Tue Aug 27 04:11:24 2013 +0300
+++ b/src/ssl-params/ssl-params.c Fri Sep 20 04:20:22 2013 +0300
@@ -5,6 +5,7 @@
#include "buffer.h"
#include "file-lock.h"
#include "read-full.h"
+#include "master-service.h"
#include "master-service-settings.h"
#include "ssl-params-settings.h"
#include "ssl-params.h"
@@ -118,7 +119,9 @@
case -1:
i_fatal("fork() failed: %m");
case 0:
- /* child */
+ /* child - close listener fds so a long-running ssl-params
+ doesn't cause Dovecot restart to fail */
+ master_service_stop_new_connections(master_service);
ssl_params_if_unchanged(param->path, param->last_mtime);
exit(0);
default:
More information about the dovecot-cvs
mailing list