Skip to content

Commit 9be978b

Browse files
committedJan 15, 2024
Skip posix_spawn if IOs are redirected
1 parent 9a057cd commit 9be978b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎process.c

+1
Original file line numberDiff line numberDiff line change
@@ -4696,6 +4696,7 @@ rb_spawn_process(struct rb_execarg *eargp, char *errmsg, size_t errmsg_buflen)
46964696
#if HAVE_POSIX_SPAWN
46974697
if (//!eargp->use_shell &&
46984698
// !eargp->pgroup_given &&
4699+
eargp->close_others_maxhint == -1 &&
46994700
!eargp->umask_given &&
47004701
!eargp->unsetenv_others_given &&
47014702
!eargp->close_others_given &&

0 commit comments

Comments
 (0)
Failed to load comments.