diff --git a/cmd/stacker/lxc-wrapper/lxc-wrapper.c b/cmd/stacker/lxc-wrapper/lxc-wrapper.c index f5c39585..c7586124 100644 --- a/cmd/stacker/lxc-wrapper/lxc-wrapper.c +++ b/cmd/stacker/lxc-wrapper/lxc-wrapper.c @@ -186,7 +186,7 @@ static int do_nsexec(char* mode, int argc, char *argv[], int *status) args.command_start = command_start; pid = clone(childFunc, child_stack + STACK_SIZE, flags | SIGCHLD, &args); - if (pid < 0) { + if ((pid < 0) && (pid != -EINVAL)) { close(args.sk_pair[0]); close(args.sk_pair[1]); fprintf(stderr, "fork(): %m\n");