about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2024-01-01 18:16:21 +0100
committerLeah Neukirchen <leah@vuxu.org>2024-01-01 18:16:21 +0100
commita9f32c27413b397b136d9630503ac42ac4dae6d3 (patch)
tree5efe967da57ca956a73176f6311507568fb53ffe
parent2e0f15c75c922313cdccb43c9183256099fb3110 (diff)
downloadnitro-a9f32c27413b397b136d9630503ac42ac4dae6d3.tar.gz
nitro-a9f32c27413b397b136d9630503ac42ac4dae6d3.tar.xz
nitro-a9f32c27413b397b136d9630503ac42ac4dae6d3.zip
send stray logs to stdout by default
-rw-r--r--nitro.c4
1 files 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;
 		}