]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/filed/heartbeat.c
Added wx-console.exe and .conf.
[bacula/bacula] / bacula / src / filed / heartbeat.c
index 458871d372fbf7fcedbedd41fb5aed5548e46a31..8e1c033d22ccee69ef689bdb2fa26f2157493afc 100644 (file)
@@ -31,7 +31,7 @@
 #include "bacula.h"
 #include "filed.h"
 
-#ifdef HAVE_CYGWIN
+#if defined(HAVE_CYGWIN) || defined(HAVE_WIN32)
 /* pthread_kill() dies on Cygwin, so disable it */
 #define pthread_kill(x, y)
 /* Use shorter wait interval on Cygwin because no kill */
@@ -63,8 +63,9 @@ static void *sd_heartbeat_thread(void *arg)
    jcr->hb_bsock = sd;
 
    /* Hang reading the socket to the SD, and every time we get
-    *  a heartbeat, we simply send it on to the Director to
-    *  keep him alive.
+    *  a heartbeat or we get a wait timeout (1 minute), we
+    *  check to see if we need to send a heartbeat to the
+    *  Directory.
     */
    for ( ; !is_bnet_stop(sd); ) {
       n = bnet_wait_data_intr(sd, WAIT_INTERVAL);