Lines Matching refs:parent

1597 			register pid_t parent;  in sh_exec()  local
1633 job.parent=parent=0; in sh_exec()
1663 parent = sh_coexec(shp,t,3); in sh_exec()
1664 shp->cpid = parent; in sh_exec()
1665 jobid = job_post(shp,parent,0); in sh_exec()
1676 parent = sh_coexec(shp,t,0); in sh_exec()
1677 jobid = job_post(shp,parent,0); in sh_exec()
1684 parent = sh_ntfork(shp,t,com,&jobid,ntflag); in sh_exec()
1686 parent = sh_fork(shp,type,&jobid); in sh_exec()
1687 if(parent<0) in sh_exec()
1697 parent = sh_ntfork(shp,t,com,&jobid,ntflag); in sh_exec()
1699 parent = sh_fork(shp,type,&jobid); in sh_exec()
1701 if((parent = sh_ntfork(shp,t,com,&jobid,ntflag))<=0) in sh_exec()
1704 if(parent<0) in sh_exec()
1711 parent = sh_fork(shp,type,&jobid); in sh_exec()
1718 if(job.parent=parent) in sh_exec()
1732 shp->bckpid = parent; in sh_exec()
1742 shp->pipepid = parent; in sh_exec()
1744 job_wait(parent); in sh_exec()
1763 sfprintf(sfstderr,"[%d]\t%s\n",jobid,sh_pid2str(shp,parent)); in sh_exec()
1765 sfprintf(sfstderr,"[%d]\t%d\n",jobid,parent); in sh_exec()
1768 sfprintf(sfstderr,"%d\n",parent); in sh_exec()
1858 while((parent = vfork()) < 0) in sh_exec()
1859 _sh_fork(shp,parent, 0, (int*)0); in sh_exec()
1860 if(parent) in sh_exec()
1863 job_post(shp,parent,0); in sh_exec()
1864 job_wait(parent); in sh_exec()
1932 pid = job.parent; in sh_exec()
3098 pid_t _sh_fork(Shell_t *shp,register pid_t parent,int flags,int *jobid) in _sh_fork() argument
3104 if(parent<0) in _sh_fork()
3126 if(parent) in _sh_fork()
3142 job.curpgid = parent; in _sh_fork()
3145 if(setpgid(parent,job.curpgid)<0 && errno==EPERM) in _sh_fork()
3146 setpgid(parent,parent); in _sh_fork()
3151 job.curpgid = parent; in _sh_fork()
3153 shp->cpid = parent; in _sh_fork()
3159 myjob = job_post(shp,parent,postid); in _sh_fork()
3163 myjob = job_post(shp,parent,postid); in _sh_fork()
3185 return(parent); in _sh_fork()
3201 parent = getpid(); in _sh_fork()
3203 job.curpgid = parent; in _sh_fork()
3204 while(setpgid(0,job.curpgid)<0 && job.curpgid!=parent) in _sh_fork()
3205 job.curpgid = parent; in _sh_fork()
3207 if(job.curpgid==parent && !(flags&FAMP)) in _sh_fork()
3251 register pid_t parent; in sh_fork() local
3259 while(_sh_fork(shp,parent=fork(),flags,jobid) < 0); in sh_fork()
3268 job_fork(parent); in sh_fork()
3269 return(parent); in sh_fork()