bug-make
[Top][All Lists]
Advanced

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

Re: [bug #33138] .PARLLELSYNC enhancement with patch


From: David Boyce
Subject: Re: [bug #33138] .PARLLELSYNC enhancement with patch
Date: Tue, 23 Apr 2013 12:28:50 -0700

On Tue, Apr 23, 2013 at 12:04 PM, Paul Smith <address@hidden> wrote:
>
> I'm not sure if the lock locks the FD (so that if you dup'd the FD but
> it still pointed to the same output, you could take exclusive locks on
> both), or if it locks the underlying resource.


I'm pretty sure it's the underlying resource that gets locked. The man page is not quite explicit but implicitly fairly clear. The opening paragraph says:

"Apply, test or remove a POSIX lock on a section of an open file.  The file is specified by fd, a file descriptor open for writing...".


David

reply via email to

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