]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Log that our faxsend process has exitted first, before working on unblocking
authorAidan Van Dyk <aidan@ifax.com>
Fri, 28 Apr 2006 17:29:16 +0000 (17:29 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Fri, 28 Apr 2006 17:29:16 +0000 (17:29 +0000)
the queue so that logs are more decipherable.

faxd/faxQueueApp.c++

index ba198c2228867ac8f90d80c42a661a77744b260e..7b5c93cf70c340906c9c28fa3d5e49c9cb4c0981 100644 (file)
@@ -1413,6 +1413,10 @@ faxQueueApp::sendJobStart(Job& job, FaxRequest* req)
 void
 faxQueueApp::sendJobDone(Job& job, int status)
 {
+    traceQueue(job, "CMD DONE: exit status %#x", status);
+    if (status&0xff)
+       logError("Send program terminated abnormally with exit status %#x", status);
+
     Job* cjob;
     Job* njob;
     DestInfo& di = destJobs[job.dest];
@@ -1432,9 +1436,6 @@ faxQueueApp::sendJobDone(Job& job, int status)
     } else {
        unblockDestJobs(job, di);
     }
-    traceQueue(job, "CMD DONE: exit status %#x", status);
-    if (status&0xff)
-       logError("Send program terminated abnormally with exit status %#x", status);
 
     for (cjob = &job; cjob != NULL; cjob = njob) {
        njob = cjob->bnext;