Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use posix spawn #551

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Skip posix_spawn if IOs are redirected
  • Loading branch information
byroot committed Jan 24, 2024
commit 536d1af3258ed2fff5dc35bd70c551c62e51779a
1 change: 1 addition & 0 deletions process.c
Original file line number Diff line number Diff line change
@@ -4698,6 +4698,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 &&