# Pastebin r5OMPlcD job_process_stop_all (void) { job_class_init (); NIH_HASH_FOREACH (job_classes, iter) { JobClass *class = (JobClass *)iter; /* Note that instances get killed in a random order */ NIH_HASH_FOREACH (class->instances, job_iter) { Job *job = (Job *)job_iter; /* Request job instance stops */ job_change_goal (job, JOB_STOP); } } }