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
posix_spawn: handle pgroup = -1
  • Loading branch information
byroot committed Jan 24, 2024
commit 7d8a2d1bed502674e405828c618d346a1cde3678
2 changes: 1 addition & 1 deletion process.c
Original file line number Diff line number Diff line change
@@ -4678,7 +4678,7 @@ rb_posix_spawn(struct rb_execarg *eargp)
posix_spawnattr_t attr;
posix_spawnattr_init(&attr);

if (eargp->pgroup_given) {
if (eargp->pgroup_given && eargp->pgroup_pgid != -1) {
if ((err = posix_spawnattr_setflags(&attr, POSIX_SPAWN_SETPGROUP))) {
rb_syserr_fail(err, "posix_spawnattr_setflags");
}