|
From: | Martin d'Anjou |
Subject: | Re: parallel make and waiting for child process |
Date: | Thu, 21 Aug 2008 14:39:58 -0400 (EDT) |
User-agent: | Alpine 1.00 (LRH 882 2007-12-20) |
On Thu, 2008-08-21 at 11:08 -0400, Martin d'Anjou wrote:Is there a way to have make kill unfinished child processes (when a child returns a non-zero exit code) and return immediately instead?No. The idea is that if those other jobs are not depending on the one that died (and if they were they wouldn't be running already...) then why not let them finish, so that the next time you run "make" (after you fix the problem with the job that died) you can avoid re-running the other jobs.
I understand. It makes sense in the cases where you want to continue the build. In my case, I have a robot that runs builds sequentially as submitted by users. Each build is different and I start from scratch each time. The idea is to minimize time spent queueing for the robot, so aborting at the first error is highly desirable.
If not, where in the source code can I change that?You'll have to dig into job.c :-/.
I am probably not competent enough to do this myself... Thanks for the info, Martin
[Prev in Thread] | Current Thread | [Next in Thread] |