diff options
author | pluknet <pluknet@FreeBSD.org> | 2011-03-30 14:15:18 +0000 |
---|---|---|
committer | pluknet <pluknet@FreeBSD.org> | 2011-03-30 14:15:18 +0000 |
commit | e27ebee43a59badd94d03f57ed93a881ff12a516 (patch) | |
tree | 08170d045c7174d52b16d4bfd6face4883fd82cf /lib/libc | |
parent | a6471e4578aeb4329a033f27eb8c474d8bb8029e (diff) | |
download | FreeBSD-src-e27ebee43a59badd94d03f57ed93a881ff12a516.zip FreeBSD-src-e27ebee43a59badd94d03f57ed93a881ff12a516.tar.gz |
Use FD_CLOEXEC explicitly.
MFC after: 3 days
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/syslog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/syslog.c b/lib/libc/gen/syslog.c index 594fb97..6f04703 100644 --- a/lib/libc/gen/syslog.c +++ b/lib/libc/gen/syslog.c @@ -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); |