提交 6754c028 authored 作者: Michael Jerris's avatar Michael Jerris

if we want to override system function in lua we should do so from mod_lua, not…

if we want to override system function in lua we should do so from mod_lua, not hack the lib.  We did the same thing for exit.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9661 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 0cea9bb4
......@@ -36,7 +36,7 @@ static int os_pushresult (lua_State *L, int i, const char *filename) {
static int os_execute (lua_State *L) {
lua_pushinteger(L, switch_system(luaL_optstring(L, 1, NULL), 1));
lua_pushinteger(L, system(luaL_optstring(L, 1, NULL)));
return 1;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论