From: Tobias Brunner Date: Thu, 27 Aug 2015 12:31:42 +0000 (+0200) Subject: ha: Close control FIFO if it is not valid X-Git-Tag: 5.3.3rc2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3e208fb9f2adc5bf47353708ef53199a0f85db6;p=thirdparty%2Fstrongswan.git ha: Close control FIFO if it is not valid --- diff --git a/src/libcharon/plugins/ha/ha_ctl.c b/src/libcharon/plugins/ha/ha_ctl.c index 27ebb91c5e..54302e8522 100644 --- a/src/libcharon/plugins/ha/ha_ctl.c +++ b/src/libcharon/plugins/ha/ha_ctl.c @@ -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); recreate_fifo(); } + if (fifo != -1) + { + close(fifo); + } sleep(1); return JOB_REQUEUE_FAIR; }