Skip to content

Commit

Permalink
fix: ignore EINVAL (for qemu builds)
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha committed Sep 28, 2023
1 parent e8ff76e commit e68684b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/stacker/lxc-wrapper/lxc-wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit e68684b

Please sign in to comment.