From 727cca1c4c6d4639c2e9bbec4f3cca40eabb7482 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 5 Feb 2007 14:19:22 +0000 Subject: [PATCH] ebl add git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4103 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/patches/testing/cancel-bug.patch | 11 +++++++++++ bacula/patches/testing/cancel-bug.readme | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 bacula/patches/testing/cancel-bug.patch create mode 100644 bacula/patches/testing/cancel-bug.readme diff --git a/bacula/patches/testing/cancel-bug.patch b/bacula/patches/testing/cancel-bug.patch new file mode 100644 index 0000000000..4b6f55453f --- /dev/null +++ b/bacula/patches/testing/cancel-bug.patch @@ -0,0 +1,11 @@ +--- src/dird/msgchan.c 8 Dec 2006 14:27:10 -0000 1.66 ++++ src/dird/msgchan.c 5 Feb 2007 14:15:52 -0000 +@@ -316,7 +316,7 @@ + Jmsg1(jcr, M_ABORT, 0, _("Cannot create message thread: %s\n"), be.strerror(status)); + } + /* Wait for thread to start */ +- while (jcr->SD_msg_chan == 0) { ++ while (jcr->SD_msg_chan == 0 && cr->sd_msg_thread_done == false) { + bmicrosleep(0, 50); + } + Dmsg1(100, "SD msg_thread started. use=%d\n", jcr->use_count()); diff --git a/bacula/patches/testing/cancel-bug.readme b/bacula/patches/testing/cancel-bug.readme new file mode 100644 index 0000000000..36d22b8935 --- /dev/null +++ b/bacula/patches/testing/cancel-bug.readme @@ -0,0 +1,11 @@ +From: Eric Bollengier + +Sometime, when my system is very busy, if i cancel a job +before i was initialised, bacula fall in a race case. +and the job thread never exits from start_storage_daemon_message_thread(). + + +$Log$ +Revision 1.1 2007/02/05 14:19:22 ricozz +ebl add + -- 2.39.5