Perm

From NetHackWiki
Revision as of 09:42, 4 September 2010 by Paxed (talk | contribs) (first info, shamelessly stolen from Pat Rankin in rgrn)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

perm is an empty file used to prevent two NetHack processes from starting at the same time, so they do not use the same file name for the temporary level files.

When one process succeeds in locking the perm file, it can start (or restore) but other processes trying to start NetHack have to wait until the lock is released. Ordinarily that release happens immediately, as soon as a name for the level files is chosen. However, if the first process dies or suffers network disconnect before releasing the lock, the second and later ones are out of luck. [1]


References