On Mon, Mar 30, 2020 at 02:28:30PM +0100, Ian Jackson wrote:
> Wei Liu writes ("Re: [PATCH 2/2] scripts: Use stat to check lock claim"):
> > On Thu, Mar 12, 2020 at 10:54:17AM -0400, Jason Andryuk wrote:
> > > Replace the perl locking check with stat(1). Stat is able to fstat
> > > stdin (file des
Wei Liu writes ("Re: [PATCH 2/2] scripts: Use stat to check lock claim"):
> On Thu, Mar 12, 2020 at 10:54:17AM -0400, Jason Andryuk wrote:
> > Replace the perl locking check with stat(1). Stat is able to fstat
> > stdin (file descriptor 0) when passed '-' as an argument. This is now
> > used to c
On Thu, Mar 12, 2020 at 10:54:17AM -0400, Jason Andryuk wrote:
> Replace the perl locking check with stat(1). Stat is able to fstat
> stdin (file descriptor 0) when passed '-' as an argument. This is now
> used to check $_lockfd. stat(1) support for '-' was introduced to
> coreutils in 2009.
>
Replace the perl locking check with stat(1). Stat is able to fstat
stdin (file descriptor 0) when passed '-' as an argument. This is now
used to check $_lockfd. stat(1) support for '-' was introduced to
coreutils in 2009.
After A releases its lock, script B will return from flock and execute
st