VirtualBox

Changeset 382 in kBuild


Ignore:
Timestamp:
Jan 12, 2006 3:59:50 AM (19 years ago)
Author:
bird
Message:

Fixed bad parallel bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/job.c

    r369 r382  
    14641464{
    14651465  struct file *f = c->file;
    1466   DB (DB_KMK, (_("start_waiting_job %p (`%s') command_flags=%#x\n"), c, c->file->name, c->file->command_flags));
     1466  DB (DB_KMK, (_("start_waiting_job %p (`%s') command_flags=%#x slots=%d/%d\n"), c, c->file->name, c->file->command_flags, job_slots_used, job_slots));
    14671467
    14681468  /* If we can start a job remotely, we always want to, and don't care about
     
    14781478    {
    14791479      /* Put this child on the chain of children waiting for the load average
    1480          to go down. if not paralell, put it last.  */
     1480         to go down. if not parallel, put it last.  */
    14811481      set_command_state (f, cs_running);
    14821482      c->next = waiting_jobs;
     
    15101510    case cs_running:
    15111511      c->next = children;
    1512       DB (DB_JOBS, (_("Putting child 0x%08lx (%s) PID %ld%s on the chain.\n"),
     1512      DB (DB_JOBS, (_("Putting child 0x%08lx (%s) PID %ld%s on the chain. (%u/%u)\n"),
    15131513                    (unsigned long int) c, c->file->name,
    1514                     (long) c->pid, c->remote ? _(" (remote)") : ""));
     1514                    (long) c->pid, c->remote ? _(" (remote)") : "", job_slots_used + 1, job_slots));
    15151515      children = c;
    15161516      /* One more job slot is in use.  */
     
    17811781  (void) start_waiting_job (c);
    17821782
    1783   if (job_slots == 1 || not_parallel < 0)
     1783  if (job_slots == 1 || not_parallel > 0)
    17841784    /* Since there is only one job slot, make things run linearly.
    17851785       Wait for the child to die, setting the state to `cs_finished'.  */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette