[Bug 255945] FuseFS breaks Flock on FreeBSD 13 RELEASE

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 17 May 2021 15:03:40 UTC

jSML4ThWwBID69YC@protonmail.com changed:

           What    |Removed                     |Added
                 CC|                            |jSML4ThWwBID69YC@protonmail
                   |                            |.com

--- Comment #1 from jSML4ThWwBID69YC@protonmail.com ---
Here's the Flock test using PHP instead of sh. 

---------- flock-test.php ---------------
   echo "Hello"; print " World \n";

   $fp = fopen("lock.file", "w");
   if (flock($fp, LOCK_EX)) {
       print "Got lock!\n";
       print "Sleep five secs.\n";
       flock($fp, LOCK_UN);
       print "Released lock!\n";

Be sure to run it on a FuseFS mount, and run it twice. For some reason the PHP
version succeeds the first time so long as the 'lock.file' file does not exist.

You are receiving this mail because:
You are the assignee for the bug.