Title. What happens if we try to unlock an already unlocked file using flock? That is to say, when we already used a flock(file, LOCK_UN) and we try to use it again!
This in C. Is the behavior unexpected? Does it give an error? Does it do nothing?
Thanks!