Commit Diff
- Commit:
e6f8b23dbd5e9ef0a3d1328907cf90d33f0f8fae
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
- Message:
- 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.
- Actions:
- Patch | Tree
--- gotwebd/gotwebd.c +++ gotwebd/gotwebd.c @@ -574,9 +574,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]); } }