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.0.3~154 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=801a0ff1a7b091f336a97671128e7a2925d980be;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 04bec303ab..e283872c73 100644 --- a/bacula/src/lib/jcr.c +++ b/bacula/src/lib/jcr.c @@ -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); } } }