mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
There was still an opportunity for code simplification. No change in behaviour.
This commit is contained in:
parent
a14d17c0f4
commit
e40aaa8aa8
1 changed files with 2 additions and 5 deletions
|
@ -1528,15 +1528,12 @@ int sh_exec(register const Shnode_t *t, int flags)
|
|||
if(shp->subshell)
|
||||
{
|
||||
sh_subtmpfile(2);
|
||||
if(shp->comsub==1 && (!(shp->fdstatus[1]&IONOSEEK)))
|
||||
if((shp->comsub && (type&(FAMP|TFORK))==(FAMP|TFORK) || shp->comsub==1) &&
|
||||
!(shp->fdstatus[1]&IONOSEEK))
|
||||
unpipe = iousepipe(shp);
|
||||
if((type&(FAMP|TFORK))==(FAMP|TFORK))
|
||||
{
|
||||
if(shp->comsub && !(shp->fdstatus[1]&IONOSEEK) && !unpipe)
|
||||
unpipe = iousepipe(shp);
|
||||
sh_subfork();
|
||||
}
|
||||
}
|
||||
no_fork = !ntflag && !(type&(FAMP|FPOU)) && !shp->subshell &&
|
||||
!(shp->st.trapcom[SIGINT] && *shp->st.trapcom[SIGINT]) &&
|
||||
!shp->st.trapcom[0] && !shp->st.trap[SH_ERRTRAP] &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue