help-make
[Top][All Lists]
Advanced

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

Re: running parallel make jobs and avoiding jumbled/garbled output?


From: Per Jessen
Subject: Re: running parallel make jobs and avoiding jumbled/garbled output?
Date: Fri, 22 Feb 2008 20:51:33 +0100
User-agent: KNode/0.10.4

Per Jessen wrote:

> David Boyce wrote:
> 
>> Seems to me this whole thread is missing an intermediate test. All
>> the discussion so far has been on terminal output vs cron. But if the
>> issue is buffering we should expect to see the same problem when
>> dumping output into a file without cron (eg "make > make.log 2>&1"),
>> no? So why not try that?
> 
> Just tried it now, and I saw no garbled or truncated output in the
> file.
> 

Well, FWIW I've found a work-around.  Maybe it'll give someone a clue as
to how to properly solve the problem. 

I wrote a crude wrapper for isatty() which I load up with LD_PRELOAD. It
returns TRUE for stdout and stderr, otherwise it just calls the
original isatty(). And that works - output is jumbled, but not garbled
nor truncated. 




/Per Jessen, Z├╝rich





reply via email to

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