diff options
author | Ian Jackson <ian.jackson@eu.citrix.com> | 2012-04-11 14:14:17 +0100 |
---|---|---|
committer | Ian Jackson <ian.jackson@eu.citrix.com> | 2012-04-11 14:14:17 +0100 |
commit | 3d2a8f74e6a6067cfc67923d1bea58959427b753 (patch) | |
tree | 98286302132564db766b64a0ae0a9f2e57b0e83e /tools/libxl/libxl_utils.c | |
parent | 378e96065b390d217e2b381a218ccb7bbb5fbe1e (diff) | |
download | xen-3d2a8f74e6a6067cfc67923d1bea58959427b753.tar.gz xen-3d2a8f74e6a6067cfc67923d1bea58959427b753.tar.bz2 xen-3d2a8f74e6a6067cfc67923d1bea58959427b753.zip |
libxl: abolish libxl_ctx_postfork
libxl's task has become too complicated (particularly in the presence
of both forking and multithreading) to support reuse of the same
libxl_ctx after fork.
So abolish libxl_ctx_fork. xl instead simply initialises a new
libxl_ctx.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_utils.c')
-rw-r--r-- | tools/libxl/libxl_utils.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/libxl/libxl_utils.c b/tools/libxl/libxl_utils.c index d6cd78d8f2..0cbd85e543 100644 --- a/tools/libxl/libxl_utils.c +++ b/tools/libxl/libxl_utils.c @@ -365,13 +365,6 @@ READ_WRITE_EXACTLY(read, 1, /* */) READ_WRITE_EXACTLY(write, 0, const) -int libxl_ctx_postfork(libxl_ctx *ctx) { - if (ctx->xsh) xs_daemon_destroy_postfork(ctx->xsh); - ctx->xsh = xs_daemon_open(); - if (!ctx->xsh) return ERROR_FAIL; - return 0; -} - pid_t libxl_fork(libxl_ctx *ctx) { pid_t pid; |