We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a39215 commit 8b2edefCopy full SHA for 8b2edef
process.c
@@ -4676,7 +4676,7 @@ rb_posix_spawn(struct rb_execarg *eargp)
4676
posix_spawnattr_t attr;
4677
posix_spawnattr_init(&attr);
4678
4679
- if (eargp->pgroup_given) {
+ if (eargp->pgroup_given && eargp->pgroup_pgid != -1) {
4680
if ((err = posix_spawnattr_setflags(&attr, POSIX_SPAWN_SETPGROUP))) {
4681
rb_syserr_fail(err, "posix_spawnattr_setflags");
4682
}
0 commit comments