The simple fix of moving the "#if defined (JOBCONTROL)" line below the
"lastpipe_flag = 0;" may not be the ideal patch.
This is because JOB_CONTROL undefined, the entire if block lower below
"QUIT;" is never executed, as lastpipe_flag is always 0.
Which means that it is kind of useless to have #if defined(JOB_CONTROL)
blocks inside of it. If this is the intended logic flow, then the
entire "if (lastpipe_flag)" block should be conditionally compiled out.
Doing that and leaving the definition of the lastpipe_flag undefined as
in the original patch will still result in a compiler diagnostic about
an unused variable.
So that would need an #if defined (JOBCONTROL) needed around the
declaration.
So what should be the correct patch? Is there another bug hiding in this?
Regards,
-John
wb8tyw@qsl.network
Personal Opinion Only