Lines Matching refs:pid
520 debug_printf("job %d, status %d, flags %s, pid %d\n",
521 (int)(job - job_table), job->status, flags, job->pid);
622 signo, job->pid);
623 KILLPG(job->pid, signo);
735 JobFindPid(int pid, JobStatus status, Boolean isJobs)
740 if (job->status == status && job->pid == pid)
744 job_table_dump("no pid");
1115 DEBUG2(JOB, "Process %d [%s] exited.\n", job->pid, job->node->name);
1165 job->pid, job->node->name, status);
1425 /* Pre-emptively mark job running, pid still zero though */
1519 job->pid = cpid;
1544 debug_printf("JobExec(%s): pid %d added to jobs table\n",
1545 job->node->name, job->pid);
1987 int pid; /* pid of dead child */
1999 while ((pid = waitpid((pid_t)-1, &status, WNOHANG | WUNTRACED)) > 0) {
2001 pid, WAIT_STATUS(status));
2002 JobReapChild(pid, status, TRUE);
2007 * It is possible that wait[pid]() was called from elsewhere,
2011 JobReapChild(pid_t pid, WAIT_T status, Boolean isJobs)
2019 job = JobFindPid(pid, JOB_ST_RUNNING, isJobs);
2024 pid, status);
2030 job->pid, job->node->name);
2239 * Since their termination causes a 'Child (pid) not in table'
2579 if (job->pid != 0) {
2582 signo, job->pid);
2583 KILLPG(job->pid, signo);
2666 KILLPG(job->pid, SIGINT);
2667 KILLPG(job->pid, SIGKILL);
2690 DEBUG1(JOB, "Restarting stopped job pid %d.\n",
2691 job->pid);
2698 if (KILLPG(job->pid, SIGCONT) != 0 && DEBUG(JOB)) {
2700 job->pid);