commit 597afb03963f10e5e274a41ca919f0f51ae45db1 from: Omar Polo date: Mon Aug 11 08:18:44 2025 UTC gotwebd: avoid needless close send_imsg() does a imsg_flush() too which will ensure the fd is sent over to the other process and close it on this side. If it fails we terminate anyway, so no need to close (doubly!) the fds. commit - ce6204164ae9cc9e4be847122484967b4c3c33c1 commit + 597afb03963f10e5e274a41ca919f0f51ae45db1 blob - 01affdd22c9241eabef71fd1fc28c0ec9c226800 blob + fb4dfe221b2b5e116cca94b8c78590b4759e2327 --- gotwebd/gotwebd.c +++ gotwebd/gotwebd.c @@ -575,9 +575,6 @@ connect_children(struct gotwebd *env) if (send_imsg(iev2, GOTWEBD_IMSG_CTL_PIPE, pipe[1], NULL, 0)) fatal("send_imsg"); - - close(pipe[0]); - close(pipe[1]); } }