diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-30 23:50:48 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-30 23:50:48 +0000 |
commit | 96e1b38586e80a0f014038bf4fdf4689c668fbd6 (patch) | |
tree | d7f6a7866700601598cfcc006b7dcb6cb4a7c07e /init | |
parent | deabacdf91c6d1c3cfcdb4cd06780807193de81d (diff) | |
download | busybox-w32-96e1b38586e80a0f014038bf4fdf4689c668fbd6.tar.gz busybox-w32-96e1b38586e80a0f014038bf4fdf4689c668fbd6.tar.bz2 busybox-w32-96e1b38586e80a0f014038bf4fdf4689c668fbd6.zip |
introduce and use close_on_exec_on(fd). -50 bytes.
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/init.c b/init/init.c index 543ec2ea8..5e8401163 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -179,7 +179,7 @@ static void message(int device, const char *fmt, ...) | |||
179 | bb_error_msg("can't log to %s", log_console); | 179 | bb_error_msg("can't log to %s", log_console); |
180 | device = L_CONSOLE; | 180 | device = L_CONSOLE; |
181 | } else { | 181 | } else { |
182 | fcntl(log_fd, F_SETFD, FD_CLOEXEC); | 182 | close_on_exec_on(log_fd); |
183 | } | 183 | } |
184 | } | 184 | } |
185 | } | 185 | } |