> Date: Thu, 30 May 2013 04:18:22 +0200
> Cc: psm...@gnu.org, stefano.lattar...@gmail.com, bug-make@gnu.org
> From: Frank Heckenbach
>
> > . get the handle that corresponds to (e.g.) stdout
> >
> > . produce a new descriptor for that handle with O_APPEND flag
> >
> > . use dup2 to replace
Eli Zaretskii wrote:
> > From: Frank Heckenbach
> >
> > However, there may still be a problem. The trick about O_APPEND on
> > POSIX it that it's atomic, i.e. nothing can get between moving the
> > file pointer and the write, even if another process tries to write
> > simultaneously. So if the P
Martin Dorey wrote:
> > That said, I'm now going back to my own programs which redirect
> > stdout in forked child processes and add O_APPEND to O_TRUNC ...
>
> Me too!
I just realized that this also applies to the temp files created for
output-sync, since tmpfile() doesn't set O_APPEND. The pro
> Date: Fri, 31 May 2013 05:36:24 +0200
> Cc: psm...@gnu.org, stefano.lattar...@gmail.com, bug-make@gnu.org
> From: Frank Heckenbach
>
> Eli Zaretskii wrote:
>
> > > From: Frank Heckenbach
> > >
> > > However, there may still be a problem. The trick about O_APPEND on
> > > POSIX it that it's a