]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl add
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 5 Feb 2007 14:19:22 +0000 (14:19 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 5 Feb 2007 14:19:22 +0000 (14:19 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4103 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/testing/cancel-bug.patch [new file with mode: 0644]
bacula/patches/testing/cancel-bug.readme [new file with mode: 0644]

diff --git a/bacula/patches/testing/cancel-bug.patch b/bacula/patches/testing/cancel-bug.patch
new file mode 100644 (file)
index 0000000..4b6f554
--- /dev/null
@@ -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 (file)
index 0000000..36d22b8
--- /dev/null
@@ -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
+