projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix dlsym asm for mips
[musl]
/
src
/
misc
/
syslog.c
diff --git
a/src/misc/syslog.c
b/src/misc/syslog.c
index
a4f36de
..
8de34f8
100644
(file)
--- a/
src/misc/syslog.c
+++ b/
src/misc/syslog.c
@@
-51,8
+51,7
@@
static void __openlog(const char *ident, int opt, int facility)
if (!(opt & LOG_NDELAY) || log_fd>=0) return;
- log_fd = socket(AF_UNIX, SOCK_DGRAM, 0);
- fcntl(log_fd, F_SETFD, FD_CLOEXEC);
+ log_fd = socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0);
}
void openlog(const char *ident, int opt, int facility)