From 7a08e91683fc20915760ecac6dd169b38ab96818 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 18 Jun 2010 16:00:10 +0200 Subject: [PATCH] Replace pthread_kill by my_thread_send_signal() in jcr.c --- bacula/src/lib/jcr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } } } -- 2.39.5