]> git.puffer.fish Git - mirror/frr.git/commit
lib: Attach stdout to child only if --log=stdout and stdout FD is a tty 16965/head
authorVladislav Odintsov <vlodintsov@k2.cloud>
Wed, 4 Sep 2024 11:18:35 +0000 (14:18 +0300)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 1 Oct 2024 07:49:37 +0000 (07:49 +0000)
commite7527ae0eeb3ed45ca3201292c6a19080957876d
treecda05a50f89811bf82a3142c10cdfb788c7f7541
parentfdb01c5f0f0747691f5a5e130d5786a7b36ea2cb
lib: Attach stdout to child only if --log=stdout and stdout FD is a tty

Prior to this commit stdout of a process started in a daemon mode was
attached to a calling process.
As a result a calling process hung for infinity.

Signed-off-by: Vladislav Odintsov <vlodintsov@k2.cloud>
(cherry picked from commit 0e3c5e8e5907321b35201f0985c1d3f4a1b0e639)
lib/libfrr.c