Home | History | Annotate | Download | only in src

Lines Matching refs:pid

43 	pid_t pid;		/* process id */
53 #define JP_LONG 3 /* print [job-num] -/+ pid command */
82 pid_t ppid; /* pid of process that forked job */
105 #define JL_INVALID 3 /* non-pid, non-% job id */
365 pi.p->pid = 0;
372 "exchild: XPIPEI and no last_job - pid %d",
415 pi.p->pid = pi.cldpid ? pi.cldpid : (procpid = getpid());
428 pi.j->pgrp = pi.p->pid;
435 setpgid(pi.p->pid, pi.j->pgrp);
522 (int)pi.p->pid);
890 /* Return pid of last process in last asynchronous job */
923 async_pid = j->last_proc->pid;
1014 * the execed shell gets a different pid from its
1118 pid_t pid;
1136 pid = waitpid(-1, &status, (WNOHANG|WUNTRACED));
1142 if (pid <= 0)
1147 /* find job and process structures for this pid */
1150 if (p->pid == pid)
1155 warningf(true, "bad process waited for (pid = %d)",
1156 pid);
1319 * last pid (which is what $! returns).
1322 (j->last_proc ? j->last_proc->pid : 0)));
1378 shf_fprintf(shf, "%5d ", (int)p->pid);
1399 (int)p->pid, " ", p->command,
1425 /* Look for last_proc->pid (what $! returns) first... */
1427 if (j->last_proc && j->last_proc->pid == job)
1644 if (p->pid != 0)
1645 if (kill(p->pid, sig) < 0)