Author: pluknet
Date: Wed Mar 30 14:15:18 2011
New Revision: 220157
URL: http://svn.freebsd.org/changeset/base/220157
Log:
Use FD_CLOEXEC explicitly.
MFC after: 3 days
Modified:
head/lib/libc/gen/syslog.c
Modified: head/lib/libc/gen/syslog.c
==============================================================================
--- head/lib/libc/gen/syslog.c Wed Mar 30 12:35:39 2011 (r220156)
+++ head/lib/libc/gen/syslog.c Wed Mar 30 14:15:18 2011 (r220157)
@@ -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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"