1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-03-02 17:54:38 +00:00

Merge pull request #491 from Interlisp/fgh_emscripten-vmem_save

Fix Issue#1541: IL:LOGOUT does not work running Medley on emscripten maiko
This commit is contained in:
Frank Halasz
2024-02-16 12:03:31 -08:00
committed by GitHub

View File

@@ -354,7 +354,7 @@ LispPTR vmem_save(char *sysout_file_name)
TIMEOUT(sysout = open(sysout_file_name, O_WRONLY, 0666));
if (sysout == -1) {
/* No file error skip return. */
if (errno != 2) return (FILECANNOTOPEN); /* No such file error.*/
if (errno != ENOENT) return (FILECANNOTOPEN); /* No such file error.*/
} else
TIMEOUT(rval = close(sysout));
@@ -481,7 +481,7 @@ LispPTR vmem_save(char *sysout_file_name)
TIMEOUT(rval = unlink(sysout_file_name));
if (rval == -1) {
/* No file error skip return. */
if (errno != 2) /* No such file error.*/
if (errno != ENOENT) /* No such file error.*/
return (FILECANNOTOPEN);
}