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-7.0.0~1748 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7a08e91683fc20915760ecac6dd169b38ab96818;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); } } }