From cbdd65ecdaec1458d19365962dbe401c4fa3cc17 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Tue, 26 May 2026 19:14:58 +0100 Subject: [PATCH] remove useless check for fd > 0 we can't even be here if the fd is not valid --- luad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */