Removed resource-related "emergency collections"

New to-be-closed variables is a better way to ensure the proper release
of resources.
This commit is contained in:
Roberto Ierusalimschy
2018-10-31 16:25:29 -03:00
parent 947a372f58
commit 2fc6b55dae
5 changed files with 2 additions and 80 deletions

View File

@@ -166,8 +166,6 @@ static int os_tmpname (lua_State *L) {
char buff[LUA_TMPNAMBUFSIZE];
int err;
lua_tmpnam(buff, err);
if (err && luaL_resourcetryagain(L)) /* resource failure? */
lua_tmpnam(buff, err); /* try again */
if (err)
return luaL_error(L, "unable to generate a unique filename");
lua_pushstring(L, buff);