Date: Mon, 4 Apr 2011 09:36:29 +0000 (UTC) From: Sergey Kandaurov <pluknet@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r220320 - stable/8/lib/libc/gen Message-ID: <201104040936.p349aT06077914@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104040936.p349aT06077914>