]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Attach stdout to child only if --log=stdout and stdout FD is a tty
authorVladislav Odintsov <vlodintsov@k2.cloud>
Wed, 4 Sep 2024 11:18:35 +0000 (14:18 +0300)
committerVladislav Odintsov <vlodintsov@k2.cloud>
Tue, 10 Sep 2024 16:06:13 +0000 (19:06 +0300)
commit0e3c5e8e5907321b35201f0985c1d3f4a1b0e639
treee308591333eb74196296fef405e8d7a096f75c76
parent2b4a262c4512515e2138c04cca6d434afe1115dd
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>
lib/libfrr.c