]> git.netwichtig.de Git - user/henk/code/exim.git/blobdiff - src/src/daemon.c
Pass authenticator pubname through spool. Bug 2648
[user/henk/code/exim.git] / src / src / daemon.c
index 4e90799e69794025ddbf14acaae3e82b82ed6497..78a4d8ec2ba137fc3d24188ca224a555e8b3d8b3 100644 (file)
@@ -963,9 +963,8 @@ daemon_die(void)
 {
 int pid;
 
-#ifndef DISABLE_TLS
-if (tls_watch_fd >= 0)
-  { close(tls_watch_fd); tls_watch_fd = -1; }
+#if !defined(DISABLE_TLS) && (defined(EXIM_HAVE_INOTIFY) || defined(EXIM_HAVE_KEVENT))
+tls_watch_invalidate();
 #endif
 
 if (daemon_notifier_fd >= 0)
@@ -2353,12 +2352,12 @@ for (;;)
 
       if (!select_failed)
        {
-#if defined(EXIM_HAVE_INOTIFY) && !defined(DISABLE_TLS)
+#if !defined(DISABLE_TLS) && (defined(EXIM_HAVE_INOTIFY) || defined(EXIM_HAVE_KEVENT))
        if (tls_watch_fd >= 0 && FD_ISSET(tls_watch_fd, &select_listen))
          {
          FD_CLR(tls_watch_fd, &select_listen);
           tls_watch_trigger_time = time(NULL); /* Set up delayed event */
-         (void) read(tls_watch_fd, big_buffer, big_buffer_size);
+         tls_watch_discard_event(tls_watch_fd);
          break;        /* to top of daemon loop */
          }
 #endif