aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/init/init.c b/init/init.c
index 989babff7..3b0a66a24 100644
--- a/init/init.c
+++ b/init/init.c
@@ -232,6 +232,8 @@ static void message(int device, char *fmt, ...)
232 log_fd = -2; 232 log_fd = -2;
233 fprintf(stderr, "Bummer, can't write to log on %s!\n", log); 233 fprintf(stderr, "Bummer, can't write to log on %s!\n", log);
234 device = CONSOLE; 234 device = CONSOLE;
235 } else {
236 fcntl(log_fd, F_SETFD, FD_CLOEXEC);
235 } 237 }
236 } 238 }
237 if ((device & LOG) && (log_fd >= 0)) { 239 if ((device & LOG) && (log_fd >= 0)) {