Lines Matching refs:spawnpid
2978 static pid_t spawnpid; in sh_ntfork() local
2999 spawnpid = 0; in sh_ntfork()
3076 spawnpid = run_subshell(t,grp); in sh_ntfork()
3104 if(spawnpid>0) in sh_ntfork()
3105 _sh_fork(spawnpid,otype,jobid); in sh_ntfork()
3108 while(tcsetpgrp(job.fd,job.curpgid)<0 && job.curpgid!=spawnpid) in sh_ntfork()
3109 job.curpgid = spawnpid; in sh_ntfork()
3115 if(spawnpid<0 && (otype&FCOOP)) in sh_ntfork()
3123 return(spawnpid); in sh_ntfork()
3136 spawnpid = -1; in sh_ntfork()
3172 spawnpid = -1; in sh_ntfork()
3200 spawnpid = path_spawn(path,argv,arge,pp,(grp<<1)|1); in sh_ntfork()
3201 if(spawnpid < 0 && errno==ENOEXEC) in sh_ntfork()
3216 spawnpid = path_spawn(shp->shpath,&argv[-1],arge,pp,(grp<<1)|1); in sh_ntfork()
3222 if(spawnpid < 0) switch(errno=shp->path_err) in sh_ntfork()
3254 if(spawnpid>0) in sh_ntfork()
3256 _sh_fork(spawnpid,otype,jobid); in sh_ntfork()
3259 job.curpgid = spawnpid; in sh_ntfork()
3263 while(tcsetpgrp(job.fd,job.curpgid)<0 && job.curpgid!=spawnpid) in sh_ntfork()
3264 job.curpgid = spawnpid; in sh_ntfork()
3272 return(spawnpid); in sh_ntfork()