Skip to content

Commit

Permalink
Fix Issue#1541: IL:LOGOUT does not work running Medley on emscripten …
Browse files Browse the repository at this point in the history
…maiko
  • Loading branch information
fghalasz committed Feb 16, 2024
1 parent 895f765 commit 258f70a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vmemsave.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 258f70a

Please sign in to comment.