remove useless check for fd > 0

we can't even be here if the fd is not valid
This commit is contained in:
2026-05-26 19:14:58 +01:00
parent 0e03b0a763
commit cbdd65ecda
+1 -1
View File
@@ -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 */