From c8015c66517c3a5364d64e065587f3770ce276bd Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 22 Apr 2003 07:18:29 +0000 Subject: [PATCH] Correct watchdog mutex bug git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@453 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/lib/watchdog.c | 5 ++--- bacula/src/version.h | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/bacula/src/lib/watchdog.c b/bacula/src/lib/watchdog.c index 786c1366a4..8f75dbb889 100755 --- a/bacula/src/lib/watchdog.c +++ b/bacula/src/lib/watchdog.c @@ -117,7 +117,6 @@ static void *btimer_thread(void *arg) Dmsg0(200, "Start watchdog thread\n"); pthread_detach(pthread_self()); - P(mutex); for ( ;!quit; ) { time_t timer_start, now; @@ -178,6 +177,7 @@ static void *btimer_thread(void *arg) * Now handle child and thread timers set by the code. */ /* Walk child chain killing off any process overdue */ + P(mutex); for (wid = timer_chain; wid; wid=wid->next) { int killed = FALSE; /* First ask him politely to go away */ @@ -206,10 +206,9 @@ static void *btimer_thread(void *arg) } } } - + V(mutex); } /* end of big for loop */ - V(mutex); Dmsg0(200, "End watchdog\n"); return NULL; } diff --git a/bacula/src/version.h b/bacula/src/version.h index b6780fc3f0..ea659e40a7 100644 --- a/bacula/src/version.h +++ b/bacula/src/version.h @@ -1,8 +1,8 @@ /* */ #define VERSION "1.30" #define VSTRING "1" -#define BDATE "21 April 2003" -#define LSMDATE "21Apr03" +#define BDATE "22 April 2003" +#define LSMDATE "22Apr03" /* Debug flags */ #define DEBUG 1 -- 2.39.5