win32 recover
Prevent recover from building a savefile out of a currently active NetHack process.
This commit is contained in:
@@ -342,7 +342,11 @@ char *argv[];
|
||||
if (fd < 0) {
|
||||
raw_print("Cannot create lock file");
|
||||
} else {
|
||||
#ifdef WIN32
|
||||
hackpid = GetCurrentProcessId();
|
||||
#else
|
||||
hackpid = 1;
|
||||
#endif
|
||||
write(fd, (genericptr_t) &hackpid, sizeof(hackpid));
|
||||
close(fd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user