Skip to content

Commit

Permalink
Skip posix_spawn if IOs are redirected
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Jan 15, 2024
1 parent 9a057cd commit 9be978b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions process.c
Original file line number Diff line number Diff line change
Expand Up @@ -4696,6 +4696,7 @@ rb_spawn_process(struct rb_execarg *eargp, char *errmsg, size_t errmsg_buflen)
#if HAVE_POSIX_SPAWN
if (//!eargp->use_shell &&
// !eargp->pgroup_given &&
eargp->close_others_maxhint == -1 &&
!eargp->umask_given &&
!eargp->unsetenv_others_given &&
!eargp->close_others_given &&
Expand Down

0 comments on commit 9be978b

Please sign in to comment.