svn commit: r220320 - stable/8/lib/libc/gen
Sergey Kandaurov
pluknet at FreeBSD.org
Mon Apr 4 09:36:29 UTC 2011
Author: pluknet
Date: Mon Apr 4 09:36:29 2011
New Revision: 220320
URL: http://svn.freebsd.org/changeset/base/220320
Log:
MFC r220157:
Use FD_CLOEXEC explicitly.
Modified:
stable/8/lib/libc/gen/syslog.c
Directory Properties:
stable/8/lib/libc/ (props changed)
stable/8/lib/libc/stdtime/ (props changed)
Modified: stable/8/lib/libc/gen/syslog.c
==============================================================================
--- stable/8/lib/libc/gen/syslog.c Mon Apr 4 09:25:27 2011 (r220319)
+++ stable/8/lib/libc/gen/syslog.c Mon Apr 4 09:36:29 2011 (r220320)
@@ -342,7 +342,7 @@ connectlog(void)
if (LogFile == -1) {
if ((LogFile = _socket(AF_UNIX, SOCK_DGRAM, 0)) == -1)
return;
- (void)_fcntl(LogFile, F_SETFD, 1);
+ (void)_fcntl(LogFile, F_SETFD, FD_CLOEXEC);
}
if (LogFile != -1 && status == NOCONN) {
SyslogAddr.sun_len = sizeof(SyslogAddr);
More information about the svn-src-stable
mailing list