Ok, what can cause flock to not unflock when the program ends? I was always told that it unlocked the file with the program ended, but this doesn't seem to always be the case.
So how do I keep my programs from doing this, and how can I unflock a file when this happens? (The only way I've found is to make a copy, delete the original and copy back)
This has been a major pain, since I can't figure out the cause and it causes the next program get stuck waiting for the lock to be released.
Help would be apreciated.