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/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255945 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 --------------- <?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"; 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 exist. -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255945-227-lZfaMHZBOG>
