mirror of https://github.com/lua/lua
better to flush all files before starting new process with popen
This commit is contained in:
parent
47e666c090
commit
9b47cee8b2
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: luaconf.h,v 1.89 2007/06/21 13:48:04 roberto Exp roberto $
|
** $Id: luaconf.h,v 1.90 2007/06/22 16:59:11 roberto Exp roberto $
|
||||||
** Configuration file for Lua
|
** Configuration file for Lua
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -656,7 +656,7 @@ union luai_Cast { double l_d; long l_l; };
|
||||||
*/
|
*/
|
||||||
#if defined(LUA_USE_POPEN)
|
#if defined(LUA_USE_POPEN)
|
||||||
|
|
||||||
#define lua_popen(L,c,m) ((void)L, popen(c,m))
|
#define lua_popen(L,c,m) ((void)L, fflush(NULL), popen(c,m))
|
||||||
#define lua_pclose(L,file) ((void)L, (pclose(file) != -1))
|
#define lua_pclose(L,file) ((void)L, (pclose(file) != -1))
|
||||||
|
|
||||||
#elif defined(LUA_WIN)
|
#elif defined(LUA_WIN)
|
||||||
|
|
Loading…
Reference in New Issue