]> git.proxmox.com Git - mirror_frr.git/commit - lib/network.h
lib: add and use set_cloexec()
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 8 Nov 2016 19:46:05 +0000 (20:46 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 9 Nov 2016 12:40:05 +0000 (13:40 +0100)
commit2da59394ec858ae5aecf2b26ab8d9fefdae17bb8
tree720795e72480f81c7f1cbabe1445bbd4ba8acc1c
parent73ea75daa522a43ad0be9bff1f26a98bc2e105b0
lib: add and use set_cloexec()

watchquagga is already leaking an open file descriptor on its pid file
on fork+exec() invocations; next up is adding vtysh support with even
more fds.  Mark things CLOEXEC before going there.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/network.c
lib/network.h
lib/pid_output.c
lib/vty.c