diff options
Diffstat (limited to 'xs_store.c')
-rw-r--r-- | xs_store.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)); |