]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/dircmd.c
- Comment out Multiple Connections in the document.
[bacula/bacula] / bacula / src / stored / dircmd.c
index 6cb10436d25b6d129bf1a0159c32a0e0328c50bf..356f12d8836c808fa2b7cf5de9570a594b5d91e7 100644 (file)
@@ -272,6 +272,7 @@ static bool cancel_cmd(JCR *cjcr)
         /* If thread waiting on mount, wake him */
         if (jcr->dcr && jcr->dcr->dev && jcr->dcr->dev->waiting_for_mount()) {
             pthread_cond_signal(&jcr->dcr->dev->wait_next_vol);
+            pthread_cond_broadcast(&wait_device_release);
         }
          bnet_fsend(dir, _("3000 Job %s marked to be canceled.\n"), jcr->Job);
         free_jcr(jcr);
@@ -553,6 +554,7 @@ static bool mount_cmd(JCR *jcr)
             bnet_fsend(dir, "3001 OK mount. Device=%s\n", 
               dev->print_name());
            pthread_cond_signal(&dev->wait_next_vol);
+           pthread_cond_broadcast(&wait_device_release);
            break;
 
         /* In both of these two cases, we (the user) unmounted the Volume */
@@ -583,6 +585,7 @@ static bool mount_cmd(JCR *jcr)
                          dev->print_name());
            }
            pthread_cond_signal(&dev->wait_next_vol);
+           pthread_cond_broadcast(&wait_device_release);
            break;
 
         case BST_DOING_ACQUIRE: