[Top][All Lists]
[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: |
Fri, 15 Apr 2011 10:12:19 -0400 |
On Thu, Apr 14, 2011 at 4:30 PM, David Boyce <address@hidden> wrote:
> 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.
Attached is an updated patch with some improvements:
- The feature is turned on by a special target currently called
.PARALLELSYNC. No filename required.
- It uses stdout as its semaphore.
- It combines output into one temp file iff the inherited stdout and
stderr are already combined, as suggested by Howard Chu.
Very lightly tested, of course. See the Makefile.synctest for a usage example.
David
make-sync.patch
Description: Binary data
Makefile.synctest
Description: Binary data
- patch to support output synchronization under -j, David Boyce, 2011/04/12
- Re: patch to support output synchronization under -j, David Boyce, 2011/04/14
- Re: patch to support output synchronization under -j, Paul Smith, 2011/04/14
- Re: patch to support output synchronization under -j, Eli Zaretskii, 2011/04/14
- Re: patch to support output synchronization under -j, Paul Smith, 2011/04/14
- Re: patch to support output synchronization under -j, David Boyce, 2011/04/14
- Re: patch to support output synchronization under -j, David Boyce, 2011/04/14
- Re: patch to support output synchronization under -j, Eli Zaretskii, 2011/04/15
- Re: patch to support output synchronization under -j,
David Boyce <=
- Re: patch to support output synchronization under -j, Eli Zaretskii, 2011/04/15
- Re: patch to support output synchronization under -j, David Boyce, 2011/04/15
- Re: patch to support output synchronization under -j, David Boyce, 2011/04/19
- Re: patch to support output synchronization under -j, David Boyce, 2011/04/19
- Re: patch to support output synchronization under -j, David Boyce, 2011/04/21
- Re: patch to support output synchronization under -j, David Boyce, 2011/04/14
- Re: patch to support output synchronization under -j, Tim Murphy, 2011/04/14
- Re: patch to support output synchronization under -j, Eli Zaretskii, 2011/04/14
- Re: patch to support output synchronization under -j, David Boyce, 2011/04/14
- Re: patch to support output synchronization under -j, Eli Zaretskii, 2011/04/15