summaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/init.c')
-rw-r--r--init/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/init.c b/init/init.c
index 543ec2e..5e84011 100644
--- a/init/init.c
+++ b/init/init.c
@@ -179,7 +179,7 @@ static void message(int device, const char *fmt, ...)
bb_error_msg("can't log to %s", log_console);
device = L_CONSOLE;
} else {
- fcntl(log_fd, F_SETFD, FD_CLOEXEC);
+ close_on_exec_on(log_fd);
}
}
}