Skip to content

Commit e68684b

Browse files
committed
fix: ignore EINVAL (for qemu builds)
Signed-off-by: Ramkumar Chinchani <[email protected]>
1 parent e8ff76e commit e68684b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/stacker/lxc-wrapper/lxc-wrapper.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static int do_nsexec(char* mode, int argc, char *argv[], int *status)
186186
args.command_start = command_start;
187187

188188
pid = clone(childFunc, child_stack + STACK_SIZE, flags | SIGCHLD, &args);
189-
if (pid < 0) {
189+
if ((pid < 0) && (pid != -EINVAL)) {
190190
close(args.sk_pair[0]);
191191
close(args.sk_pair[1]);
192192
fprintf(stderr, "fork(): %m\n");

0 commit comments

Comments
 (0)