On Thu, Apr 14, 2011 at 3:08 PM, David Boyce <david.s.bo...@gmail.com> wrote:
> On Thu, Apr 14, 2011 at 2:10 PM, Paul Smith <psm...@gnu.org> 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

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to