X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fsrc%2Fdaemon.c;h=a4b1e2685451633f8480c928a59c1977d037648b;hb=86d51a7b1055b6fad9a4add3b42efd40328b5130;hp=b088e3491e02a6feb300434bb095759827770823;hpb=55d640e82602e67525f3c621df6f0c81278da712;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/daemon.c b/src/src/daemon.c index b088e3491..a4b1e2685 100644 --- a/src/src/daemon.c +++ b/src/src/daemon.c @@ -2462,7 +2462,14 @@ for (;;) #ifndef DISABLE_TLS /* Create or rotate any required keys; handle (delayed) filewatch event */ - tls_daemon_tick(); + for (int old_tfd = tls_daemon_tick(); old_tfd >= 0; ) + { + FD_CLR(old_tfd, &select_listen); + if (old_tfd == listen_fd_max - 1) listen_fd_max = old_tfd; + if (tls_watch_fd >= 0) + add_listener_socket(tls_watch_fd, &select_listen, &listen_fd_max); + break; + } #endif errno = select_errno; }