]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/fd_cmds.c
Add mutex some priority info for SD
[bacula/bacula] / bacula / src / stored / fd_cmds.c
index f096e5f4a8476d463be07c83b120d00d51c4b408..49616e4d0999b5ed6ddee67205f61d223ffe2aae 100644 (file)
@@ -129,6 +129,8 @@ void run_job(JCR *jcr)
    dir->fsend(Job_end, jcr->Job, jcr->JobStatus, jcr->JobFiles,
       edit_uint64(jcr->JobBytes, ec1), jcr->JobErrors);
    dir->signal(BNET_EOD);             /* send EOD to Director daemon */
+   /* ***FIXME*** remove for production */
+   sm_check(__FILE__, __LINE__, true);
    return;
 }
 
@@ -176,8 +178,10 @@ void do_fd_commands(JCR *jcr)
          }
       }
       if (!found) {                   /* command not found */
-         Jmsg1(jcr, M_FATAL, 0, _("FD command not found: %s\n"), fd->msg);
-         Dmsg1(110, "<filed: Command not found: %s\n", fd->msg);
+         if (!job_canceled(jcr)) {
+            Jmsg1(jcr, M_FATAL, 0, _("FD command not found: %s\n"), fd->msg);
+            Dmsg1(110, "<filed: Command not found: %s\n", fd->msg);
+         }
          fd->fsend(ferrmsg);
          break;
       }