]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 56918] Compute job slots properly on failing command
authorPaul Smith <psmith@gnu.org>
Sat, 21 Sep 2019 19:11:21 +0000 (15:11 -0400)
committerPaul Smith <psmith@gnu.org>
Sat, 21 Sep 2019 19:38:48 +0000 (15:38 -0400)
commitbd4ce86785a1b12a76d3d4638f20d1e033dad1ec
tree3023b82cb60d4bccfbfda39c543e326a9dbfc492
parente1c072aa7ec68b85240a8eee8fea889831450b08
[SV 56918] Compute job slots properly on failing command

Ensure we properly reduce job_slots_used if a command fails because
it doesn't exist/can't be started.

* src/job.h (struct child): Add a field jobslot to be set when using
a job slot.
* src/job.c (start_waiting_job): Remember if we are using a job slot.
(reap_children): Reduce number of job slots used by jobslot.
src/job.c
src/job.h
tests/scripts/features/errors