startup problems on Unix
I found I was no longer able to start "nethack", I think due to the change in the save file structure. But, it looks like the Unix-specific check in bufon() was never quite correct. I'd have to guess we've been lucky up until now.
This commit is contained in:
+7
-5
@@ -723,11 +723,13 @@ bufon(fd)
|
|||||||
int fd;
|
int fd;
|
||||||
{
|
{
|
||||||
#ifdef UNIX
|
#ifdef UNIX
|
||||||
if(bw_fd >= 0)
|
if(bw_fd != fd) {
|
||||||
panic("double buffering unexpected");
|
if(bw_fd >= 0)
|
||||||
bw_fd = fd;
|
panic("double buffering unexpected");
|
||||||
if((bw_FILE = fdopen(fd, "w")) == 0)
|
bw_fd = fd;
|
||||||
panic("buffering of file %d failed", fd);
|
if((bw_FILE = fdopen(fd, "w")) == 0)
|
||||||
|
panic("buffering of file %d failed", fd);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
buffering = TRUE;
|
buffering = TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user