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
, an error will leave the file open and the lock will be marked unlocked -- which means Unlock won't clear the file. A similar situation exists with the lock function as well, and the windows implementation suffers the same issue.
Perhaps the best solution would be to just close the file if the lock/try failed, then a user doesn't need to worry so much about a close function.
The text was updated successfully, but these errors were encountered:
Went and looked back at this, now I remember why I wanted an extra Close() function.
In try, anywhere after
flock/flock_unix.go
Line 147 in 886344b
Perhaps the best solution would be to just close the file if the lock/try failed, then a user doesn't need to worry so much about a close function.
The text was updated successfully, but these errors were encountered: