aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2007-08-30 13:13:13 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2007-08-30 13:13:13 -0300
commit9b47cee8b218e274c89cb3481ca360a785936f48 (patch)
treedb3c20ec194477e3c8a5f74145876bc687314558
parent47e666c090d02291c2f36edf1dfdfb59798b7966 (diff)
downloadlua-9b47cee8b218e274c89cb3481ca360a785936f48.tar.gz
lua-9b47cee8b218e274c89cb3481ca360a785936f48.tar.bz2
lua-9b47cee8b218e274c89cb3481ca360a785936f48.zip
better to flush all files before starting new process with popen
-rw-r--r--luaconf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/luaconf.h b/luaconf.h
index 080d9161..4680d8af 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.89 2007/06/21 13:48:04 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.90 2007/06/22 16:59:11 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -656,7 +656,7 @@ union luai_Cast { double l_d; long l_l; };
656*/ 656*/
657#if defined(LUA_USE_POPEN) 657#if defined(LUA_USE_POPEN)
658 658
659#define lua_popen(L,c,m) ((void)L, popen(c,m)) 659#define lua_popen(L,c,m) ((void)L, fflush(NULL), popen(c,m))
660#define lua_pclose(L,file) ((void)L, (pclose(file) != -1)) 660#define lua_pclose(L,file) ((void)L, (pclose(file) != -1))
661 661
662#elif defined(LUA_WIN) 662#elif defined(LUA_WIN)