]> git.ipfire.org Git - thirdparty/make.git/commit
Don't block for child exit if other commands have completed
authorPaul Smith <psmith@gnu.org>
Sun, 19 Feb 2023 05:40:48 +0000 (00:40 -0500)
committerPaul Smith <psmith@gnu.org>
Sun, 19 Feb 2023 06:27:22 +0000 (01:27 -0500)
commit4c9b92256088ddd6fc9e840869f4fe52de4bebc3
tree113da1d86aea816468103dd2328c41962724c2f2
parent2449ef3c88e6b1369137681c3a7370d777c332c1
Don't block for child exit if other commands have completed

Running regression tests on a single CPU system shows that if a child
exits while we're checking prerequisites we might not notice it, and
then we might block waiting for the next child to exit before we try
to do more work even though we could.

* src/remake.c (update_goal_chain): Remember the command_count before
we start checking prerequisites and if it is different when we restart
at the top of the goal chain then don't block.
src/remake.c