You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In SHARYANTO::File::Flock, your redo TRY logic is written incorrectly. If $path has been unlinked by another process, then @st2 will become empty, but your code fails to redo TRY in that case and incorrectly returns success.
Additionally, you have to be more careful never to unlink the lockfile while the current process doesn’t have it locked. That may happen in your code if release or unlock is called before the object is destroyed.
The text was updated successfully, but these errors were encountered:
In SHARYANTO::File::Flock, your
redo TRY
logic is written incorrectly. If$path
has been unlinked by another process, then@st2
will become empty, but your code fails toredo TRY
in that case and incorrectly returns success.Additionally, you have to be more careful never to
unlink
the lockfile while the current process doesn’t have it locked. That may happen in your code ifrelease
orunlock
is called before the object is destroyed.The text was updated successfully, but these errors were encountered: