Lines Matching defs:pid

399 	fprintf(debug_file, "job %d, status %d, flags %d, pid %d\n",
400 (int)(job - job_table), job->job_state, job->flags, job->pid);
503 signo, job->pid);
505 KILLPG(job->pid, signo);
653 * Compare the pid of the job with the given pid and return 0 if they
659 * pid process id desired
662 * Job with matching pid
669 JobFindPid(int pid, int status, Boolean isJobs)
674 if ((job->job_state == status) && job->pid == pid)
678 job_table_dump("no pid");
1005 job->pid, job->node->name, status);
1053 job->pid, job->node->name);
1368 /* Pre-emptively mark job running, pid still zero though */
1474 job->pid = cpid;
1495 fprintf(debug_file, "JobExec(%s): pid %d added to jobs table\n",
1496 job->node->name, job->pid);
2033 int pid; /* pid of dead child */
2042 while ((pid = waitpid((pid_t) -1, &status, WNOHANG | WUNTRACED)) > 0) {
2044 (void)fprintf(debug_file, "Process %d exited/stopped status %x.\n", pid,
2047 JobReapChild(pid, status, TRUE);
2052 * It is possible that wait[pid]() was called from elsewhere,
2056 JobReapChild(pid_t pid, WAIT_T status, Boolean isJobs)
2066 job = JobFindPid(pid, JOB_ST_RUNNING, isJobs);
2070 Error("Child (%d) status %x not in table?", pid, status);
2077 job->pid, job->node->name);
2298 * Since their termination causes a 'Child (pid) not in table' message,
2646 if (job->pid) {
2650 signo, job->pid);
2652 KILLPG(job->pid, signo);
2771 KILLPG(job->pid, SIGINT);
2772 KILLPG(job->pid, SIGKILL);
2808 (void)fprintf(debug_file, "Restarting stopped job pid %d.\n",
2809 job->pid);
2816 if (KILLPG(job->pid, SIGCONT) != 0 && DEBUG(JOB)) {
2817 fprintf(debug_file, "Failed to send SIGCONT to %d\n", job->pid);