diff options
author | kraxel <kraxel> | 2005-12-09 17:17:29 +0000 |
---|---|---|
committer | kraxel <kraxel> | 2005-12-09 17:17:29 +0000 |
commit | 7e6f3f2478ddb5194dc842a016658319dad1099d (patch) | |
tree | 18469353a85a397eb24980807901fe06ec1459f6 /xs_store.c | |
parent | af7c08b6378fb64958b7092de541d24bbee0805e (diff) | |
download | xenwatch-7e6f3f2478ddb5194dc842a016658319dad1099d.tar.gz |
- add console support.
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)); |