diff options
Diffstat (limited to 'tools/libxl/xl.c')
-rw-r--r-- | tools/libxl/xl.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/libxl/xl.c b/tools/libxl/xl.c index a6ffd25ff7..d4db1f8b8b 100644 --- a/tools/libxl/xl.c +++ b/tools/libxl/xl.c @@ -105,6 +105,18 @@ void postfork(void) } } +pid_t xl_fork(libxl_ctx *ctx) { + pid_t pid; + + pid = fork(); + if (pid == -1) { + perror("fork failed"); + exit(-1); + } + + return pid; +} + int main(int argc, char **argv) { int opt = 0; |