[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.19 and 1.20

version 1.19, 1999/12/18 21:56:07 version 1.20, 1999/12/18 21:58:07
Line 679 
Line 679 
     ClientData   gn;      ClientData   gn;
 {  {
     cmd = (ClientData) Var_Subst((char *) cmd, (GNode *) gn, FALSE);      cmd = (ClientData) Var_Subst((char *) cmd, (GNode *) gn, FALSE);
     (void) Lst_AtEnd(postCommands->commands, cmd);      Lst_AtEnd(postCommands->commands, cmd);
     return(0);      return(0);
 }  }
   
Line 856 
Line 856 
                     WSTOPSIG(*status));                      WSTOPSIG(*status));
             }              }
             job->flags |= JOB_RESUME;              job->flags |= JOB_RESUME;
             (void)Lst_AtEnd(stoppedJobs, (ClientData)job);              Lst_AtEnd(stoppedJobs, (ClientData)job);
 #ifdef REMOTE  #ifdef REMOTE
             if (job->flags & JOB_REMIGRATE)              if (job->flags & JOB_REMIGRATE)
                 JobRestart(job);                  JobRestart(job);
Line 1339 
Line 1339 
      * Now the job is actually running, add it to the table.       * Now the job is actually running, add it to the table.
      */       */
     nJobs += 1;      nJobs += 1;
     (void) Lst_AtEnd(jobs, (ClientData)job);      Lst_AtEnd(jobs, (ClientData)job);
     if (nJobs == maxJobs) {      if (nJobs == maxJobs) {
         jobFull = TRUE;          jobFull = TRUE;
     }      }
Line 1474 
Line 1474 
                    (void) fprintf(stdout, "*** holding\n");                     (void) fprintf(stdout, "*** holding\n");
                    (void) fflush(stdout);                     (void) fflush(stdout);
                 }                  }
                 (void)Lst_AtFront(stoppedJobs, (ClientData)job);                  Lst_AtFront(stoppedJobs, (ClientData)job);
                 jobFull = TRUE;                  jobFull = TRUE;
                 if (DEBUG(JOB)) {                  if (DEBUG(JOB)) {
                    (void) fprintf(stdout, "Job queue is full.\n");                     (void) fprintf(stdout, "Job queue is full.\n");
Line 1495 
Line 1495 
         }          }
 #endif  #endif
   
         (void)Lst_AtEnd(jobs, (ClientData)job);          Lst_AtEnd(jobs, (ClientData)job);
         nJobs += 1;          nJobs += 1;
         if (nJobs == maxJobs) {          if (nJobs == maxJobs) {
             jobFull = TRUE;              jobFull = TRUE;
Line 1540 
Line 1540 
                     (void) fprintf(stdout, "holding\n");                      (void) fprintf(stdout, "holding\n");
                     (void) fflush(stdout);                      (void) fflush(stdout);
                 }                  }
                 (void)Lst_AtFront(stoppedJobs, (ClientData)job);                  Lst_AtFront(stoppedJobs, (ClientData)job);
                 jobFull = TRUE;                  jobFull = TRUE;
                 if (DEBUG(JOB)) {                  if (DEBUG(JOB)) {
                     (void) fprintf(stdout, "Job queue is full.\n");                      (void) fprintf(stdout, "Job queue is full.\n");
Line 1640 
Line 1640 
                 (void) fprintf(stdout, "table full\n");                  (void) fprintf(stdout, "table full\n");
                 (void) fflush(stdout);                  (void) fflush(stdout);
             }              }
             (void) Lst_AtFront(stoppedJobs, (ClientData)job);              Lst_AtFront(stoppedJobs, (ClientData)job);
             jobFull = TRUE;              jobFull = TRUE;
             if (DEBUG(JOB)) {              if (DEBUG(JOB)) {
                 (void) fprintf(stdout, "Job queue is full.\n");                  (void) fprintf(stdout, "Job queue is full.\n");
Line 1941 
Line 1941 
            (void) fflush(stdout);             (void) fflush(stdout);
         }          }
         job->flags |= JOB_RESTART;          job->flags |= JOB_RESTART;
         (void) Lst_AtEnd(stoppedJobs, (ClientData)job);          Lst_AtEnd(stoppedJobs, (ClientData)job);
     } else {      } else {
         if ((nLocal >= maxLocal) && local) {          if ((nLocal >= maxLocal) && local) {
             /*              /*
Line 2270 
Line 2270 
             }              }
         } else {          } else {
             job = (Job *) Lst_Datum(jnode);              job = (Job *) Lst_Datum(jnode);
             (void) Lst_Remove(jobs, jnode);              Lst_Remove(jobs, jnode);
             nJobs -= 1;              nJobs -= 1;
             if (jobFull && DEBUG(JOB)) {              if (jobFull && DEBUG(JOB)) {
                 (void) fprintf(stdout, "Job queue is no longer full.\n");                  (void) fprintf(stdout, "Job queue is no longer full.\n");

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20