[BACK]Return to job.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/job.c between version 1.145 and 1.146

version 1.145, 2020/01/04 12:50:52 version 1.146, 2020/01/04 16:16:37
Line 148 
Line 148 
 static void continue_job(Job *);  static void continue_job(Job *);
 static Job *reap_finished_job(pid_t);  static Job *reap_finished_job(pid_t);
 static bool reap_jobs(void);  static bool reap_jobs(void);
   static void may_continue_heldback_jobs();
   
 static void loop_handle_running_jobs(void);  static void loop_handle_running_jobs(void);
 static bool expensive_job(Job *);  static bool expensive_job(Job *);
Line 746 
Line 747 
 {  {
         nJobs--;          nJobs--;
         postprocess_job(job);          postprocess_job(job);
   }
   
   static void
   may_continue_heldback_jobs()
   {
         while (!no_new_jobs) {          while (!no_new_jobs) {
                 if (heldJobs != NULL) {                  if (heldJobs != NULL) {
                         job = heldJobs;                          Job *job = heldJobs;
                         heldJobs = heldJobs->next;                          heldJobs = heldJobs->next;
                         if (DEBUG(EXPENSIVE))                          if (DEBUG(EXPENSIVE))
                                 fprintf(stderr, "[%ld] cheap -> release %s\n",                                  fprintf(stderr, "[%ld] cheap -> release %s\n",
Line 803 
Line 809 
                         job_handle_status(job, status);                          job_handle_status(job, status);
                         determine_job_next_step(job);                          determine_job_next_step(job);
                 }                  }
                   may_continue_heldback_jobs();
         }          }
         /* sanity check, should not happen */          /* sanity check, should not happen */
         if (pid == -1 && errno == ECHILD && runningJobs != NULL)          if (pid == -1 && errno == ECHILD && runningJobs != NULL)

Legend:
Removed from v.1.145  
changed lines
  Added in v.1.146