summaryrefslogtreecommitdiff
path: root/src/libcharon/plugins/ha/ha_ctl.c
diff options
context:
space:
mode:
authorRené Mayrhofer <rene@mayrhofer.eu.org>2011-03-05 09:29:19 +0100
committerRené Mayrhofer <rene@mayrhofer.eu.org>2011-03-05 09:29:19 +0100
commit365e71f706b40c32173fa06c6feaac48c1527520 (patch)
tree54fa72a914d18c9430eaa54f3de4a2d4419198af /src/libcharon/plugins/ha/ha_ctl.c
parent5d7669b7b3563c50b3c86903e0a49373d597b8a0 (diff)
parent568905f488e63e28778f87ac0e38d845f45bae79 (diff)
downloadvyos-strongswan-365e71f706b40c32173fa06c6feaac48c1527520.tar.gz
vyos-strongswan-365e71f706b40c32173fa06c6feaac48c1527520.zip
Fixed merge, don't know why this didn't happen automatically - maybe a leftover from the svn->git conversion
Diffstat (limited to 'src/libcharon/plugins/ha/ha_ctl.c')
-rw-r--r--src/libcharon/plugins/ha/ha_ctl.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libcharon/plugins/ha/ha_ctl.c b/src/libcharon/plugins/ha/ha_ctl.c
index 980c0551a..698f73e12 100644
--- a/src/libcharon/plugins/ha/ha_ctl.c
+++ b/src/libcharon/plugins/ha/ha_ctl.c
@@ -21,8 +21,13 @@
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
+<<<<<<< HEAD
#include <pthread.h>
+=======
+
+#include <threading/thread.h>
+>>>>>>> upstream/4.5.1
#include <processing/jobs/callback_job.h>
#define HA_FIFO IPSEC_PIDDIR "/charon.ha"
@@ -60,6 +65,7 @@ struct private_ha_ctl_t {
*/
static job_requeue_t dispatch_fifo(private_ha_ctl_t *this)
{
+<<<<<<< HEAD
int fifo, old;
char buf[8];
u_int segment;
@@ -67,6 +73,16 @@ static job_requeue_t dispatch_fifo(private_ha_ctl_t *this)
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, &old);
fifo = open(HA_FIFO, O_RDONLY);
pthread_setcancelstate(old, NULL);
+=======
+ int fifo;
+ bool oldstate;
+ char buf[8];
+ u_int segment;
+
+ oldstate = thread_cancelability(TRUE);
+ fifo = open(HA_FIFO, O_RDONLY);
+ thread_cancelability(oldstate);
+>>>>>>> upstream/4.5.1
if (fifo == -1)
{
DBG1(DBG_CFG, "opening HA fifo failed: %s", strerror(errno));