diff --git a/luad.c b/luad.c index 1a9f0b3..f32b7b0 100644 --- a/luad.c +++ b/luad.c @@ -104,7 +104,7 @@ int start_lua_child(lua_State *L, fflush(stdout); fflush(stderr); for(int i=0; i < 3; i++) { - if(fds[i] > 0) dup2(fds[i], i); + dup2(fds[i], i); } lua_newtable(L); /* arg */