diff options
Diffstat (limited to 'libc/misc/syslog')
-rw-r--r-- | libc/misc/syslog/syslog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/syslog/syslog.c b/libc/misc/syslog/syslog.c index da60874b3..dbb1e0d01 100644 --- a/libc/misc/syslog/syslog.c +++ b/libc/misc/syslog/syslog.c @@ -164,7 +164,7 @@ retry: if ((LogFile = socket(AF_UNIX, logType, 0)) == -1) { goto DONE; } - fcntl(LogFile, F_SETFD, 1); /* 1 == FD_CLOEXEC */ + fcntl(LogFile, F_SETFD, FD_CLOEXEC); /* We don't want to block if e.g. syslogd is SIGSTOPed */ fcntl(LogFile, F_SETFL, O_NONBLOCK | fcntl(LogFile, F_GETFL)); } |