lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 9b47cee8b218e274c89cb3481ca360a785936f48
parent 47e666c090d02291c2f36edf1dfdfb59798b7966
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu, 30 Aug 2007 13:12:50 -0300

better to flush all files before starting new process with popen

Diffstat:
Mluaconf.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/luaconf.h b/luaconf.h @@ -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 ** See Copyright Notice in lua.h */ @@ -656,7 +656,7 @@ union luai_Cast { double l_d; long l_l; }; */ #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)) #elif defined(LUA_WIN)