Skip to content

Commit 03b149d

Browse files
committed
Skip posix_spawn if IOs are redirected
1 parent aa71b07 commit 03b149d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

process.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4698,6 +4698,7 @@ rb_spawn_process(struct rb_execarg *eargp, char *errmsg, size_t errmsg_buflen)
46984698
#if HAVE_POSIX_SPAWN
46994699
if (//!eargp->use_shell &&
47004700
// !eargp->pgroup_given &&
4701+
eargp->close_others_maxhint == -1 &&
47014702
!eargp->umask_given &&
47024703
!eargp->unsetenv_others_given &&
47034704
!eargp->close_others_given &&

0 commit comments

Comments
 (0)