Changeset 217 for trunk/src/gmake/job.c
- Timestamp:
- Feb 8, 2005, 8:22:20 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/job.c
r192 r217 812 812 lastc->next = c->next; 813 813 814 /* update not_parallel if the file was flagged for that. */ 815 if ((c->file->command_flags & COMMANDS_NOTPARALLEL) && not_parallel >= 1) 816 --not_parallel; 817 814 818 free_child (c); 815 819 … … 1397 1401 /* If we are running at least one job already and the load average 1398 1402 is too high, make this one wait. */ 1399 if (!c->remote && job_slots_used > 0 && load_too_high ()) 1403 if (!c->remote && job_slots_used > 0 && 1404 (not_parallel || (c->file->command_flags & COMMANDS_NOTPARALLEL) || load_too_high ())) 1400 1405 { 1401 1406 /* Put this child on the chain of children waiting for the load average … … 1406 1411 return 0; 1407 1412 } 1413 1414 if (c->file->command_flags & COMMANDS_NOTPARALLEL) 1415 ++not_parallel; 1408 1416 1409 1417 /* Start the first command; reap_children will run later command lines. */ … … 1430 1438 case cs_finished: 1431 1439 notice_finished_file (f); 1440 if ((c->file->command_flags & COMMANDS_NOTPARALLEL) && not_parallel >= 1) 1441 --not_parallel; 1432 1442 free_child (c); 1433 1443 break; … … 1924 1934 if (job_slots_used > 0) 1925 1935 --job_slots_used; 1936 1937 /* update not_parallel if the file was flagged for that. */ 1938 if ((c->file->command_flags & COMMANDS_NOTPARALLEL) && not_parallel >= 1) 1939 --not_parallel; 1926 1940 1927 1941 /* If the job failed, and the -k flag was not given, die. */
Note:
See TracChangeset
for help on using the changeset viewer.