Date: Wed, 30 Mar 2011 14:15:18 +0000 (UTC) From: Sergey Kandaurov <pluknet@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r220157 - head/lib/libc/gen Message-ID: <201103301415.p2UEFIkU065840@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103301415.p2UEFIkU065840>