luad

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 59da5998b89b8c1aa724dad0eecd0b444af11fdc
parent 20bf3b8fba247b300b1cc92093c735f0cf184d56
Author: Daniel Barlow <dan@telent.net>
Date:   Tue, 19 May 2026 21:32:24 +0100

don't leak passed fds in parent

Diffstat:
Mluad.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/luad.c b/luad.c @@ -229,6 +229,10 @@ int main(int argc, char **argv) if(child_pid >= 0) { register_peer(child_pid, &peer_addr, msg.msg_namelen); } + /* close peer fds in parent */ + close(peer_fds[0]); + close(peer_fds[1]); + close(peer_fds[2]); } } }