Lines Matching defs:pid
45 pid_t pid;
55 pid_t pid;
68 #define JP_LONG 3 /* print [job-num] -/+ pid command */
98 pid_t ppid; /* pid of process that forked job */
121 #define JL_INVALID 2 /* non-pid, non-% job id */
476 p->pid = 0;
482 internal_errorf("exchild: XPIPEI and no last_job - pid %d",
532 p->pid = cldpid ? cldpid : (procpid = getpid());
541 j->pgrp = p->pid;
549 setpgid(p->pid, j->pgrp);
641 (int)p->pid);
1039 /* Return pid of last process in last asynchronous job */
1076 async_pid = j->last_proc->pid;
1186 * the execed shell gets a different pid from its
1331 pid_t pid;
1358 pid = waitpid(-1, &status, WNOHANG);
1361 pid = waitpid(-1, &status, (WNOHANG |
1367 pid = wait(&status);
1375 if (pid <= 0)
1380 /* find job and process structures for this pid */
1383 if (p->pid == pid)
1388 warningf(true, "bad process waited for (pid = %d)",
1389 pid);
1563 * last pid (which is what $! returns).
1566 (j->last_proc ? j->last_proc->pid : 0)));
1637 shf_fprintf(shf, "%5d ", (int)p->pid);
1666 (int)p->pid, T1space, p->command,
1692 /* Look for last_proc->pid (what $! returns) first... */
1694 if (j->last_proc && j->last_proc->pid == job)
1928 if (p->pid != 0)
1929 if (kill(p->pid, sig) < 0)