diff options
-rw-r--r-- | nitro.c | 4 |
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; } |