Lines Matching refs:jlist
295 static void free_jobs(JOB **jlist) in free_jobs() argument
297 JOB *j = dlist_pop(jlist); in free_jobs()
328 JOB *jstart, *jlist = (JOB *)list->job; in remove_completed_jobs() local
331 jstart = jlist; in remove_completed_jobs()
332 while (jlist) { in remove_completed_jobs()
333 jlist->isrunning = 0; in remove_completed_jobs()
334 if (jlist->pid > 0) { in remove_completed_jobs()
335 jlist->isrunning = 1; in remove_completed_jobs()
337 jlist = jlist->next; in remove_completed_jobs()
339 if (jlist == jstart) { // if 1st node has to delete. in remove_completed_jobs()
341 free_jobs(&jlist); in remove_completed_jobs()
343 } else free_jobs(&jlist); in remove_completed_jobs()
345 if (jlist == jstart) break; in remove_completed_jobs()
347 list->job = (struct double_list *)jlist; in remove_completed_jobs()