bug-make
[Top][All Lists]
Advanced

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

Re: Make run in parallel mode with output redirected to a regular file c


From: Eli Zaretskii
Subject: Re: Make run in parallel mode with output redirected to a regular file can randomly drop output lines
Date: Mon, 27 May 2013 20:13:40 +0300

> Date: Mon, 27 May 2013 00:42:34 +0200
> From: Frank Heckenbach <address@hidden>
> Cc: address@hidden
> 
> One issue, though it might seem strange that I'm the one to mention
> it, is that it might be POSIX specific. How do other systems behave,
> can they set O_APPEND via fcntl or otherwise

This can be done on Windows by creating a new file descriptor that has
the O_APPEND bit set, and then using dup2 to force stdout/stderr refer
to that file descriptor.  (This is theory; I should try that and see
if it actually works.)

> and if so, does it guarantee non-conflicting writes?

Not sure I understand what you are asking here.  Can you elaborate?



reply via email to

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