From: Aidan Van Dyk Date: Mon, 24 Apr 2006 20:52:04 +0000 (+0000) Subject: If our fork fails, we need something to make sure the ctrlJobDone() X-Git-Tag: HYLAFAX-4_3_0RC2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54582e24b4b9cd63fe6acdfa06eb9adaee165bbd;p=thirdparty%2FHylaFAX.git If our fork fails, we need something to make sure the ctrlJobDone() get's run, so we need to run it ourselves. --- diff --git a/faxd/faxQueueApp.c++ b/faxd/faxQueueApp.c++ index d6747504..f47842de 100644 --- a/faxd/faxQueueApp.c++ +++ b/faxd/faxQueueApp.c++ @@ -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)