summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-01-05 07:16:35 +0000
committerMike Frysinger <vapier@gentoo.org>2008-01-05 07:16:35 +0000
commitea0dcba922677916927075ccdd4f65e4764de3d5 (patch)
treeecab5fde97d4708cabb8e171e45c26e8e5f2864a
parent3ea0aa46f70e85a7cd97b278831b73ec46cb71f6 (diff)
krichy writes in 292:
I noticed, that in libc/misc/syslog/syslog.c when the syslog socket is opened, the close-on-exec flag is not set, as it is in gnu libc. This enables that behavior.
-rw-r--r--libc/misc/syslog/syslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/syslog/syslog.c b/libc/misc/syslog/syslog.c
index 0a5c48f86..d881af682 100644
--- a/libc/misc/syslog/syslog.c
+++ b/libc/misc/syslog/syslog.c
@@ -165,7 +165,7 @@ retry:
if ((LogFile = socket(AF_UNIX, logType, 0)) == -1) {
goto DONE;
}
- /* fcntl(LogFile, F_SETFD, 1); */
+ fcntl(LogFile, F_SETFD, 1);
}
}