]> git.proxmox.com Git - mirror_frr.git/commit - lib/libfrr.c
lib: don't close stdio when running foreground
authorDavid Lamparter <equinox@opensourcerouting.org>
Fri, 11 Aug 2017 13:43:28 +0000 (15:43 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 11 Aug 2017 13:45:56 +0000 (15:45 +0200)
commiteef3d03026f6bd6e7528c0250a0a34f57c6bf756
tree12c6b2469f53f756df8f9d69458df6e924082d3c
parent2cb5980f20bb642e60484a1647031cb6f013ddc3
lib: don't close stdio when running foreground

c9c8d0d ("lib: close stdin/out/err in non-terminal case") overshot its
goal and closes stdin/stdout/stderr even when a daemon is running in
foreground.  That means stdout logging & exit memory reporting are both
broken.

Reported-by: Lou Berger <lberger@labn.net>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/libfrr.c