From e68684bb2146285c286c280cd4b3cd1f12863ff6 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Thu, 28 Sep 2023 01:18:53 +0000 Subject: [PATCH] fix: ignore EINVAL (for qemu builds) Signed-off-by: Ramkumar Chinchani --- cmd/stacker/lxc-wrapper/lxc-wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");