Lines Matching refs:thejob
1436 struct pipe *thejob;
1441 for (thejob = job_list; thejob; thejob = thejob->next)
1442 if (thejob->jobid >= pi->jobid)
1443 pi->jobid = thejob->jobid + 1;
1445 /* Add thejob to the list of running jobs */
1447 thejob = job_list = xmalloc(sizeof(*thejob));
1449 for (thejob = job_list; thejob->next; thejob = thejob->next)
1451 thejob->next = xmalloc(sizeof(*thejob));
1452 thejob = thejob->next;
1456 memcpy(thejob, pi, sizeof(struct pipe));
1457 thejob->progs = xzalloc(sizeof(pi->progs[0]) * pi->num_progs);
1462 thejob->progs[i].pid = pi->progs[i].pid;
1465 thejob->next = NULL;
1466 thejob->cmdtext = xstrdup(get_cmdtext(pi));
1470 printf("[%d] %d %s\n", thejob->jobid, thejob->progs[0].pid, thejob->cmdtext);
1471 last_bg_pid = thejob->progs[0].pid;
1472 last_jobid = thejob->jobid;