aboutsummaryrefslogtreecommitdiffstats
path: root/xs_store.c
diff options
context:
space:
mode:
Diffstat (limited to 'xs_store.c')
-rw-r--r--xs_store.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xs_store.c b/xs_store.c
index dbf40c4..a3c5633 100644
--- a/xs_store.c
+++ b/xs_store.c
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <fcntl.h>
#include <xs.h>
#include "xs_store.h"
@@ -410,6 +411,7 @@ xenstore_init(XenStore *st)
return;
}
#endif
+ fcntl(xs_fileno(st->xenstore),F_SETFD,FD_CLOEXEC);
xs_watch(st->xenstore, "/", "token");
st->ch = g_io_channel_unix_new(xs_fileno(st->xenstore));