Lines Matching defs:spawnpid
3562 static pid_t spawnpid;
3583 spawnpid = 0;
3666 spawnpid = run_subshell(shp,t,grp);
3695 if(spawnpid>0)
3696 _sh_fork(shp,spawnpid,otype,jobid);
3699 while(tcsetpgrp(job.fd,job.curpgid)<0 && job.curpgid!=spawnpid)
3700 job.curpgid = spawnpid;
3706 if(spawnpid<0 && (otype&FCOOP))
3714 return(spawnpid);
3727 spawnpid = -1;
3763 spawnpid = -1;
3791 spawnpid = path_spawn(shp,path,argv,arge,pp,(grp<<1)|1);
3792 if(spawnpid < 0 && errno==ENOEXEC)
3807 spawnpid = path_spawn(shp,shp->gd->shpath,&argv[-1],arge,pp,(grp<<1)|1);
3813 if(spawnpid < 0) switch(errno=shp->path_err)
3845 if(spawnpid>0)
3847 _sh_fork(shp,spawnpid,otype,jobid);
3850 job.curpgid = spawnpid;
3854 while(tcsetpgrp(job.fd,job.curpgid)<0 && job.curpgid!=spawnpid)
3855 job.curpgid = spawnpid;
3863 return(spawnpid);