Lines Matching refs:job
2175 struct pipe *job; in check_and_run_traps() local
2179 for (job = G.job_list; job; job = job->next) { in check_and_run_traps()
2180 if (job->pgrp <= 0) in check_and_run_traps()
2182 debug_printf_exec("HUPing pgrp %d\n", job->pgrp); in check_and_run_traps()
2183 if (kill(- job->pgrp, SIGHUP) == 0) in check_and_run_traps()
2184 kill(- job->pgrp, SIGCONT); in check_and_run_traps()
8838 struct pipe *job, **jobp; in insert_job_into_table() local
8846 while ((job = *jobp) != NULL) { in insert_job_into_table()
8847 if (job->jobid > i) in insert_job_into_table()
8848 i = job->jobid; in insert_job_into_table()
8849 jobp = &job->next; in insert_job_into_table()
8854 job = *jobp = xmemdup(pi, sizeof(*pi)); in insert_job_into_table()
8855 job->next = NULL; in insert_job_into_table()
8856 job->cmds = xzalloc(sizeof(pi->cmds[0]) * pi->num_cmds); in insert_job_into_table()
8859 job->cmds[i].pid = pi->cmds[i].pid; in insert_job_into_table()
8862 job->cmdtext = xstrdup(get_cmdtext(pi)); in insert_job_into_table()
8865 printf("[%u] %u %s\n", job->jobid, (unsigned)job->cmds[0].pid, job->cmdtext); in insert_job_into_table()
8866 G.last_jobid = job->jobid; in insert_job_into_table()
11713 struct pipe *job; in builtin_jobs() local
11717 for (job = G.job_list; job; job = job->next) { in builtin_jobs()
11718 if (job->alive_cmds == job->stopped_cmds) in builtin_jobs()
11723 printf(JOB_STATUS_FORMAT, job->jobid, status_string, job->cmdtext); in builtin_jobs()