Fixed a problem in -r, when the jobid wasn't found.
authorviric@llimona
Thu, 17 Jan 2008 23:22:08 +0100
changeset 182 e4c03200b149
parent 181 834ed2b832ea
child 183 95d49e8a8cec
Fixed a problem in -r, when the jobid wasn't found.
jobs.c
--- a/jobs.c	Thu Jan 17 23:10:05 2008 +0100
+++ b/jobs.c	Thu Jan 17 23:22:08 2008 +0100
@@ -630,7 +630,7 @@
         }
     }
 
-    if (p == 0 || p->state == RUNNING || p == firstjob)
+    if (p == 0 || p->state == RUNNING || p == firstjob || p->jobid != jobid)
     {
         char tmp[50];
         if (jobid == -1)