1. rm -rf ~/.adom.data
2. mkdir ~/.adom.data
3. touch ~/.adom.data/ADOM_HS.LCK
4. Start ADOM, start a game, leave the chain, answer y/n prompts
5. Read "The highscore has been locked for a long time. Some kind of problem with / another ADOM process might be the reason for this. You might be in trouble... / [Press SPACE to continue]"
6. Press space
7. Repeat steps 5-6 ad infinitum
There seems to be no provision for a hi score lock file that is never removed. This can happen for example when a Pre6 ADOM locks then tries to read a hi score file that's been touched by Pre14 and segfaults, leaving the lock file behind.
The window has to be force closed, or the game killed from another terminal, and the lock file removed manually.
Suggestions:
* Give up after 3-5 presses (print "N tries remaining"), or
* Give option to give up ("Press Q to give up"), and/or
* Read the lock file and print "Process #NNNN seems to be holding it open" with a recommendation to kick it or remove the lock file if the process is not still running
Actually, rereading
#2158 I think this is one of the problems reported there.