Bug 256931

Summary: [webkitcorepy] Fix race condition in FileLock
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: Tools / TestsAssignee: Jonathan Bedard <jbedard>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Jonathan Bedard 2023-05-17 17:15:41 PDT
If a process releases and then imiediately attempts to re-aquire a FileLock, we will end up with a race-condition if another process is also trying to do the same. FileLock should be robust against this race condition, since this is precisely the situation where a FileLock is most useful.
Comment 1 Radar WebKit Bug Importer 2023-05-17 17:16:19 PDT
<rdar://problem/109487762>
Comment 2 Jonathan Bedard 2023-05-17 17:19:21 PDT
Pull request: https://github.com/WebKit/WebKit/pull/13993
Comment 3 EWS 2023-05-22 07:40:06 PDT
Committed 264321@main (1c10cac85558): <https://commits.webkit.org/264321@main>

Reviewed commits have been landed. Closing PR #13993 and removing active labels.