ha: Close control FIFO if it is not valid
This commit is contained in:
@@ -111,6 +111,10 @@ static job_requeue_t dispatch_fifo(private_ha_ctl_t *this)
|
|||||||
DBG1(DBG_CFG, "%s is not a FIFO, recreate it", HA_FIFO);
|
DBG1(DBG_CFG, "%s is not a FIFO, recreate it", HA_FIFO);
|
||||||
recreate_fifo();
|
recreate_fifo();
|
||||||
}
|
}
|
||||||
|
if (fifo != -1)
|
||||||
|
{
|
||||||
|
close(fifo);
|
||||||
|
}
|
||||||
sleep(1);
|
sleep(1);
|
||||||
return JOB_REQUEUE_FAIR;
|
return JOB_REQUEUE_FAIR;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user