commit 0ec5a98736c43f29a03a379d3fe322b359e941886735744e2efbbf2d00b01f74 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 - 9f39b41c67c33d8797617c5f3176f6ca0194d1e8de389cd24ea97328a809fc50 commit + 0ec5a98736c43f29a03a379d3fe322b359e941886735744e2efbbf2d00b01f74 blob - a88d05dc756214d23250274407bb2ac948e0652a6840b82347482f6429d7ab94 blob + 7bcd834fe49d8988133c231bbd6b52ed19c6c5c53b74fd8b3c3ea63366aaf583 --- 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]); } }