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:
@ -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
|
||||
|
Reference in New Issue
Block a user