Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use posix spawn #551

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
args
Co-authored-by: Jean Boussier <byroot@ruby-lang.org>
  • Loading branch information
etiennebarrie and byroot committed Jan 24, 2024
commit 5b2cf4157c91c4114bd5f6bc08e23e544b966e81
3 changes: 2 additions & 1 deletion process.c
Original file line number Diff line number Diff line change
@@ -4633,7 +4633,8 @@ rb_posix_spawn(struct rb_execarg *eargp)
return -1;
}

pid = posix_spawn(&pid, abspath, NULL, NULL, NULL, NULL);
char **argv = ARGVSTR2ARGV(eargp->invoke.cmd.argv_str);
pid = posix_spawn(&pid, abspath, NULL, NULL, argv, NULL);

return (rb_pid_t)pid;
}