From: Eric Bollengier Date: Fri, 18 Jun 2010 14:00:10 +0000 (+0200) Subject: Replace pthread_kill by my_thread_send_signal() in jcr.c X-Git-Tag: Release-5.2.1~1283 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a14227f8d3e6c2ee7e40dd689131cf0d66c56ac7;p=bacula%2Fbacula Replace pthread_kill by my_thread_send_signal() in jcr.c --- diff --git a/bacula/src/lib/jcr.c b/bacula/src/lib/jcr.c index 7ff53db742..445340f64f 100644 --- a/bacula/src/lib/jcr.c +++ b/bacula/src/lib/jcr.c @@ -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 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; @@ -1086,7 +1086,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; @@ -1098,7 +1098,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); } } }