Lines Matching refs:jlist
296 static void free_jobs(JOB **jlist) in free_jobs() argument
298 JOB *j = dlist_pop(jlist); in free_jobs()
329 JOB *jstart, *jlist = (JOB *)list->job; in remove_completed_jobs() local
332 jstart = jlist; in remove_completed_jobs()
333 while (jlist) { in remove_completed_jobs()
334 jlist->isrunning = 0; in remove_completed_jobs()
335 if (jlist->pid > 0) { in remove_completed_jobs()
336 jlist->isrunning = 1; in remove_completed_jobs()
338 jlist = jlist->next; in remove_completed_jobs()
340 if (jlist == jstart) { // if 1st node has to delete. in remove_completed_jobs()
342 free_jobs(&jlist); in remove_completed_jobs()
344 } else free_jobs(&jlist); in remove_completed_jobs()
346 if (jlist == jstart) break; in remove_completed_jobs()
348 list->job = (struct double_list *)jlist; in remove_completed_jobs()