Lines Matching defs:fork
54 # define vfork() fork()
285 return(sh_tclear(t->fork.forktre));
796 lineno = t->fork.forkline;
805 t = t->fork.forktre;
808 t = t->fork.forktre;
1440 sh_exec(t->fork.forktre,0);
1560 /* This is the parent branch of fork
1664 error_info.line = t->fork.forkline-shp->st.firstline;
1693 sh_exec(t->fork.forktre,flags|sh_state(SH_NOFORK)|sh_state(SH_FORKED));
1717 int simple = (t->fork.forktre->tre.tretyp&COMMSK)==TCOM;
1722 sh_redirect(shp,t->fork.forkio,0);
1723 sh_exec(t->fork.forktre,0);
1748 error_info.line = t->fork.forkline-shp->st.firstline;
1754 sh_redirect(shp,t->fork.forkio,execflg);
1755 (t->fork.forktre)->tre.tretyp |= t->tre.tretyp&FSHOWME;
1756 sh_exec(t->fork.forktre,flags&~simple);
1834 while((pid=fork())< 0)
2873 * This routine creates a subshell by calling fork() or vfork()
2875 * If fork fails, the shell sleeps for exponentially longer periods
2893 * called by parent and child after fork by sh_fork()
3043 while(_sh_fork(shp,parent=fork(),flags,jobid) < 0);
3469 * create a shell script consisting of t->fork.forktre and execute it
3512 sfprintf(sfstdout,"LINENO=%d\n",t->fork.forkline);
3519 sh_deparse(sp,t->fork.forktre,0);
3558 * A combined fork/exec for systems with slow or non-existent fork()
3579 register Shnode_t *tchild = t->fork.forktre;
3646 if(t->fork.forkio)
3647 sh_redirect(shp,t->fork.forkio,0);
3684 if(t->fork.forkio || otype)
3870 pid_t fork(void)
3872 errormsg(SH_DICT,ERROR_exit(3),e_notimp,"fork");