Lines Matching defs:pid
102 pid_t pid; /* process id */
110 #define JP_LONG 3 /* print [job-num] -/+ pid command */
139 pid_t ppid; /* pid of process that forked job */
164 #define JL_INVALID 3 /* non-pid, non-% job id */
457 p->pid = 0;
462 internal_errorf(1, "exchild: XPIPEI and no last_job - pid %d", (int) procpid);
522 p->pid = procpid = getpid();
524 p->pid = i;
554 j->pgrp = p->pid;
561 setpgid(p->pid, j->pgrp);
662 shf_fprintf(shl_out, " %d", p->pid);
1025 /* Return pid of last process in last asynchronous job */
1058 async_pid = j->last_proc->pid;
1157 * the execed shell gets a different pid from its
1251 int pid;
1268 pid = waitpid(-1, &status, (WNOHANG|WUNTRACED));
1270 if (pid <= 0) /* return if would block (0) ... */
1275 /* find job and process structures for this pid */
1278 if (p->pid == pid)
1283 warningf(true, "bad process waited for (pid = %d)",
1284 pid);
1448 * last pid (which is what $! returns).
1451 : (j->last_proc ? j->last_proc->pid : 0));
1504 shf_fprintf(shf, "%5d ", p->pid);
1525 shf_fprintf(shf, "%s%5d %-20s %s%s", filler, p->pid,
1552 /* Look for last_proc->pid (what $! returns) first... */
1554 if (j->last_proc && j->last_proc->pid == job)
1771 if (p->pid != 0)
1772 if (kill(p->pid, sig) < 0)