diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2024-06-06 17:18:32 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-06-21 15:32:15 +0200 |
commit | b74801645c23bbb349df7522663f9ac253d6dc95 (patch) | |
tree | c081ae8ba46576d334236924f47310f5d075bca4 /log.h | |
parent | 65923ba79877c412870c37f6d55d6bb6d1d941e8 (diff) | |
download | passt-b74801645c23bbb349df7522663f9ac253d6dc95.tar passt-b74801645c23bbb349df7522663f9ac253d6dc95.tar.gz passt-b74801645c23bbb349df7522663f9ac253d6dc95.tar.bz2 passt-b74801645c23bbb349df7522663f9ac253d6dc95.tar.lz passt-b74801645c23bbb349df7522663f9ac253d6dc95.tar.xz passt-b74801645c23bbb349df7522663f9ac253d6dc95.tar.zst passt-b74801645c23bbb349df7522663f9ac253d6dc95.zip |
conf, passt: Don't try to log to stderr after we close it
If we don't run in foreground, we close standard error as we
daemonise, so it makes no sense to check if the controlling terminal
is an interactive terminal or if --force-stderr was given, to decide
if we want to log to standard error.
Make --force-stderr depend on --foreground.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'log.h')
0 files changed, 0 insertions, 0 deletions