commit | 6a9799020b2d5f60183e352f0baf5c185da616c4 | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Mon Sep 30 20:08:53 2002 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Mon Sep 30 20:08:53 2002 +0000 |
tree | 67dc2766662bc3849c6fb98e655b79e617b424e7 | |
parent | e4d2a43951a2610925e43e9081f4b1027e94aa2c [diff] [blame] |
Set the close-on-exec flag, just to be saf
diff --git a/init/init.c b/init/init.c index 989babf..3b0a66a 100644 --- a/init/init.c +++ b/init/init.c
@@ -232,6 +232,8 @@ log_fd = -2; fprintf(stderr, "Bummer, can't write to log on %s!\n", log); device = CONSOLE; + } else { + fcntl(log_fd, F_SETFD, FD_CLOEXEC); } } if ((device & LOG) && (log_fd >= 0)) {