Skip to content

Commit

Permalink
Failure to launch external commands due to posix_spawn race
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it committed Jan 16, 2021
1 parent be4ca26 commit 90becb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/ksh93/sh/xec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,7 @@ int sh_exec(register const Shnode_t *t, int flags)
#else
#if SHOPT_SPAWN
# ifdef _lib_fork
if(com)
if(com && !job.jobcontrol)
parent = sh_ntfork(shp,t,com,&jobid,ntflag);
else
parent = sh_fork(shp,type,&jobid);
Expand Down

0 comments on commit 90becb7

Please sign in to comment.