diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-09-30 20:08:53 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-09-30 20:08:53 +0000 |
commit | 6a9799020b2d5f60183e352f0baf5c185da616c4 (patch) | |
tree | 67dc2766662bc3849c6fb98e655b79e617b424e7 | |
parent | e4d2a43951a2610925e43e9081f4b1027e94aa2c (diff) | |
download | busybox-w32-6a9799020b2d5f60183e352f0baf5c185da616c4.tar.gz busybox-w32-6a9799020b2d5f60183e352f0baf5c185da616c4.tar.bz2 busybox-w32-6a9799020b2d5f60183e352f0baf5c185da616c4.zip |
Set the close-on-exec flag, just to be saf
-rw-r--r-- | init/init.c | 2 |
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)) { |