 
 Index: src/dird/dird.c
 ===================================================================
---- src/dird/dird.c	(revision 7173)
+--- src/dird/dird.c	(revision 7176)
 +++ src/dird/dird.c	(working copy)
 @@ -40,6 +40,7 @@
  /* Forward referenced subroutines */

+db_cleanup_job_record(JCR *jcr, B_DB *mdb)
+{
+   int stat;
+   char query[] = "UPDATE Job SET JobStatus = 'f' WHERE JobStatus IN ('R', 'C')";
+
+   db_lock(mdb);
+   stat = UPDATE_DB(jcr, mdb, mdb->cmd);
+   db_unlock(mdb);
+   return stat;
+}

    bool OK = true;
Index: src/cats/sql_update.c
===================================================================
--- src/cats/sql_update.c	(revision 7176)
+++ src/cats/sql_update.c	(working copy)
@@ -288,6 +288,18 @@
 }
