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 52410a1 commit 7d8a2d1Copy full SHA for 7d8a2d1
1 file changed
process.c
@@ -4678,7 +4678,7 @@ rb_posix_spawn(struct rb_execarg *eargp)
4678
posix_spawnattr_t attr;
4679
posix_spawnattr_init(&attr);
4680
4681
- if (eargp->pgroup_given) {
+ if (eargp->pgroup_given && eargp->pgroup_pgid != -1) {
4682
if ((err = posix_spawnattr_setflags(&attr, POSIX_SPAWN_SETPGROUP))) {
4683
rb_syserr_fail(err, "posix_spawnattr_setflags");
4684
}
0 commit comments