scd: Close THE_EVENT handle.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 7 Mar 2017 01:19:40 +0000 (10:19 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 7 Mar 2017 01:19:40 +0000 (10:19 +0900)
* scd/scdaemon.c (handle_connections): Close the handle.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/scdaemon.c

index 4b63c9b..13cf2e6 100644 (file)
@@ -1378,6 +1378,10 @@ handle_connections (int listen_fd)
         }
     }
 
+#ifdef HAVE_W32_SYSTEM
+  if (the_event != INVALID_HANDLE_VALUE)
+    CloseHandle (the_event);
+#endif
   cleanup ();
   log_info (_("%s %s stopped\n"), strusage(11), strusage(13));
   npth_attr_destroy (&tattr);