]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
If our fork fails, we need something to make sure the ctrlJobDone()
authorAidan Van Dyk <aidan@ifax.com>
Mon, 24 Apr 2006 20:52:04 +0000 (20:52 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Mon, 24 Apr 2006 20:52:04 +0000 (20:52 +0000)
get's run, so we need to run it ourselves.

faxd/faxQueueApp.c++

index d674750488e81124c68b6b12fd2e0bd1200df428..f47842deb000eebf9c86ebb0ca243a7cbfc9177a 100644 (file)
@@ -1626,6 +1626,9 @@ faxQueueApp::setReadyToRun(Job& job)
            case -1:                    // error - continue with no JCI
                jobError(job, "JOB CONTROL: fork: %m");
                Sys::close(pfd[1]);
+                // When fork fails we need to run jobCtrlDone, since there
+                // will be no child signal to start it.
+                ctrlJobDone(job, -1);
                break;
            case 0:                             // child, exec command
                if (pfd[1] != STDOUT_FILENO)