I know there are a bunch of people that have complained about the record book feature of who's online "starting over". I'm just wondering if anyone has come up with a fix. Surely someone can figure something out.
I am not familiar with the locking routines in perl but obviously something is not right in that area with this code.
This is what is happening. The file is locked and then read:
The next 20 or so lines are just computation stuff adding and deleting people etc. Then the file is opened for writing:
Maybe someone can come up with a better file locking solution.
Here are the lock and unlock subroutines:
I'm going to try flock which may be a better solution. I'm no perl guru but know just enough to get myself in trouble
