Date: Mon, 17 May 2021 15:03:40 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 255945] FuseFS breaks Flock on FreeBSD 13 RELEASE Message-ID: <bug-255945-227-lZfaMHZBOG@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-255945-227@https.bugs.freebsd.org/bugzilla/> References: <bug-255945-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255945 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.=20 ---------- flock-test.php --------------- <?php echo "Hello"; print " World \n"; $fp =3D fopen("lock.file", "w"); if (flock($fp, LOCK_EX)) { print "Got lock!\n"; print "Sleep five secs.\n"; sleep(5); 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 ex= ist. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255945-227-lZfaMHZBOG>