diff options
author | Sergey Kandaurov <pluknet@FreeBSD.org> | 2011-03-30 14:15:18 +0000 |
---|---|---|
committer | Sergey Kandaurov <pluknet@FreeBSD.org> | 2011-03-30 14:15:18 +0000 |
commit | af47829540ce638feca9a2b15e258545e0846c17 (patch) | |
tree | 08170d045c7174d52b16d4bfd6face4883fd82cf | |
parent | 766282cbe7635a17826960f719c998ab8768d765 (diff) |
Notes
-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 594fb97d6fff6..6f04703fd2a0d 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); |