2 This patch causes that jobs not yet created are now removed from
3 the work queue just after the cancel command.
5 It can be applied to 2.4.2 (not to previous versions) with:
8 patch -p0 <2.4.2-cancel-non-running-jobs.patch
9 ./configure <your-options>
15 ===================================================================
16 --- src/dird/job.c (révision 7681)
17 +++ src/dird/job.c (copie de travail)
22 + int32_t old_status = jcr->JobStatus;
24 set_jcr_job_status(jcr, JS_Canceled);
26 - switch (jcr->JobStatus) {
27 + switch (old_status) {
30 case JS_WaitClientRes: