]> git.sur5r.net Git - bacula/bacula/commitdiff
Replace pthread_kill by my_thread_send_signal() in jcr.c
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 18 Jun 2010 14:00:10 +0000 (16:00 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 19 Jun 2010 09:30:36 +0000 (11:30 +0200)
bacula/src/lib/jcr.c

index 04bec303abc523f4a81b86609e76c5598f49ad4e..e283872c730eed842edcbd785819e9f5f72d769f 100644 (file)
@@ -1050,7 +1050,7 @@ static void jcr_timeout_check(watchdog_t *self)
             Qmsg(jcr, M_ERROR, 0, _(
 "Watchdog sending kill after %d secs to thread stalled reading Storage daemon.\n"),
                  watchdog_time - timer_start);
-            pthread_kill(jcr->my_thread_id, TIMEOUT_SIGNAL);
+            jcr->my_thread_send_signal(TIMEOUT_SIGNAL);
          }
       }
       bs = jcr->file_bsock;
@@ -1062,7 +1062,7 @@ static void jcr_timeout_check(watchdog_t *self)
             Qmsg(jcr, M_ERROR, 0, _(
 "Watchdog sending kill after %d secs to thread stalled reading File daemon.\n"),
                  watchdog_time - timer_start);
-            pthread_kill(jcr->my_thread_id, TIMEOUT_SIGNAL);
+            jcr->my_thread_send_signal(TIMEOUT_SIGNAL);
          }
       }
       bs = jcr->dir_bsock;
@@ -1074,7 +1074,7 @@ static void jcr_timeout_check(watchdog_t *self)
             Qmsg(jcr, M_ERROR, 0, _(
 "Watchdog sending kill after %d secs to thread stalled reading Director.\n"),
                  watchdog_time - timer_start);
-            pthread_kill(jcr->my_thread_id, TIMEOUT_SIGNAL);
+            jcr->my_thread_send_signal(TIMEOUT_SIGNAL);
          }
       }
    }