bug-make
[Top][All Lists]
Advanced

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

Re: patch to support output synchronization under -j


From: David Boyce
Subject: Re: patch to support output synchronization under -j
Date: Thu, 14 Apr 2011 16:30:42 -0400

On Thu, Apr 14, 2011 at 3:08 PM, David Boyce <address@hidden> wrote:
> On Thu, Apr 14, 2011 at 2:10 PM, Paul Smith <address@hidden> wrote:
>> I'm not sure I like the idea of having to define a lockfile to enable
>> this feature though.  It feels a little too much like exposing the
>> implementation details to the user.
>
> Agree. This needs a little more thought.

I don't know why this hasn't occurred to me or the authors of similar
programs before, but it appears to be possible to get a lock on any
writable file descriptor - for instance stdout or stderr, or one of
the jobserver-fds. I just changed syncsh to synchronize around a lock
on stdout and it seems to work. This looks much more elegant than
specifying a writable file.

Or is my understanding of file/pipe/locking semantics flawed? And how
would Windows/DOS/VMS/OS2 would do with this?

David



reply via email to

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