Re: [Xen-devel] [PATCH 2/2] scripts: Use stat to check lock claim

2020-03-30 Thread Wei Liu
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

Re: [Xen-devel] [PATCH 2/2] scripts: Use stat to check lock claim

2020-03-30 Thread Ian Jackson
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

Re: [Xen-devel] [PATCH 2/2] scripts: Use stat to check lock claim

2020-03-30 Thread Wei Liu
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. >

[Xen-devel] [PATCH 2/2] scripts: Use stat to check lock claim

2020-03-12 Thread Jason Andryuk
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