Lines Matching refs:thejob
1170 struct job *thejob;
1173 /* find the ID for thejob to use */
1175 for (thejob = j_list->head; thejob; thejob = thejob->next)
1176 if (thejob->jobid >= newjob->jobid)
1177 newjob->jobid = thejob->jobid + 1;
1179 /* add thejob to the list of running jobs */
1181 thejob = j_list->head = xmalloc(sizeof(*thejob));
1183 for (thejob = j_list->head; thejob->next; thejob = thejob->next) /* nothing */;
1184 thejob->next = xmalloc(sizeof(*thejob));
1185 thejob = thejob->next;
1188 *thejob = *newjob; /* physically copy the struct job */
1189 thejob->next = NULL;
1190 thejob->running_progs = thejob->num_progs;
1191 thejob->stopped_progs = 0;
1197 printf("[%d] %d\n", thejob->jobid,
1202 newjob->job_list->fg = thejob;
1213 /* struct job *thejob; */