From a9f32c27413b397b136d9630503ac42ac4dae6d3 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 1 Jan 2024 18:16:21 +0100 Subject: send stray logs to stdout by default --- nitro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nitro.c b/nitro.c index 8c0a1ce..e4cd12d 100644 --- a/nitro.c +++ b/nitro.c @@ -95,7 +95,7 @@ int controlsock; int nullfd; int selfpipe[2]; int globallog[2]; -int globaloutfd = 2; +int globaloutfd = 1; DIR *cwd; DIR *notifydir; char notifypath[256]; @@ -1275,7 +1275,7 @@ main(int argc, char *argv[]) if (access("/dev/kmsg", W_OK) == 0) { if ((globaloutfd = open("/dev/kmsg", O_WRONLY | O_APPEND | O_CLOEXEC)) < 0) { - globaloutfd = 2; + globaloutfd = 1; } else { log_format = LOGF_KMSG; } -- cgit 1.4.1