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
Call posix_spawnattr_destroy (generally noop, but by contract...)
  • Loading branch information
byroot committed Jan 24, 2024
commit b0088d641e62697a111a4bdb800ea4b5258cbfdb
2 changes: 2 additions & 0 deletions process.c
Original file line number Diff line number Diff line change
@@ -4675,6 +4675,8 @@ rb_posix_spawn(struct rb_execarg *eargp)
}

err = posix_spawn(&pid, abspath, NULL, &attr, argv, envp);
posix_spawnattr_destroy(&attr);

if (err) {
rb_sys_fail(abspath);
}