ha: Close control FIFO if it is not valid
This commit is contained in:
1 parent
0709280175
commit
e3e208fb9f
1 file changed
+4
@@ -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