1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

* misc/syslog.c (openlog_internal): Fix __have_sock_cloexec

initialization.
This commit is contained in:
Ulrich Drepper
2008-10-22 21:45:13 +00:00
parent 60a23f5a72
commit 208bc83670
4 changed files with 20 additions and 4 deletions

View File

@ -358,10 +358,11 @@ openlog_internal(const char *ident, int logstat, int logfac)
# ifndef __ASSUME_SOCK_CLOEXEC
if (__have_sock_cloexec == 0)
__have_sock_cloexec
= (LogFile != -1
|| errno != EINVAL);
= ((LogFile != -1
|| errno != EINVAL)
? 1 : -1);
}
#endif
# endif
#endif
#ifndef __ASSUME_SOCK_CLOEXEC
# ifdef SOCK_CLOEXEC