From e885dee5ab4dbee2457ee2023340e848fdabdef9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 25 Jul 2018 11:44:46 -0300 Subject: File operations try an "emergency collection" when failing If a file operation fails do to lack of resources (too many open files or not enough memory), it does a full garbage collection and tries the operation again. Lack of resources are "too many open files" (process wise and system wise) and "not enough memory". The code is full of '#if's because error codes are not part of the standard ISO C. --- loslib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'loslib.c') diff --git a/loslib.c b/loslib.c index 62988d27..8809e5ea 100644 --- a/loslib.c +++ b/loslib.c @@ -1,5 +1,5 @@ /* -** $Id: loslib.c,v 1.65 2016/07/18 17:58:58 roberto Exp roberto $ +** $Id: loslib.c $ ** Standard Operating System library ** See Copyright Notice in lua.h */ @@ -10,7 +10,6 @@ #include "lprefix.h" -#include #include #include #include -- cgit v1.2.3-55-g6feb