help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 5.4 Parallel Execution(2)


From: ali hagigat
Subject: Re: 5.4 Parallel Execution(2)
Date: Mon, 17 Jan 2011 13:57:20 +0330

Thank you Mr.Smith.
When make calls shell to execute a command and then shell returns,
make will check the return value of that command, if it is non-zero,
there is an error, so make will give up that target and probably make
exits.
I want to analyse the parallel execution of recipes by the same logic.
Consider some threads have been created for some recipes but several
of them are terminated(because they tried to read from stdin). Does
this mean that their target failed and were not built so make should
stop functioning further and should return immediately. Is that
correct?
Or make continues building other targets?

On Sun, Jan 16, 2011 at 9:28 PM, Paul Smith <address@hidden> wrote:
> On Sun, 2011-01-16 at 09:00 +0330, ali hagigat wrote:
>> If some child processes read from standard input, in parallel
>> execution some of them will receive broken pipe signal and perhaps
>> they will be terminated. So what happens to make? make will return
>> with an error?  immediately?
>
> If you mean, what if a program make invokes tries to read from stdin and
> gets an error, how does make handle that?  The same way it would handle
> any other failure from any other job make invokes.  If the script that
> is running the command doesn't catch it and do something with it, then
> make will report the job as failed.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]