[mod_accesslog] don't close fd -1
From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2956 152afb58-edef-0310-8abb-c4023f1b3aa9svn/tags/lighttpd-1.4.35
parent
8e31e18b8e
commit
326f2fb8a4
|
@ -603,7 +603,7 @@ SIGHUP_FUNC(log_access_cycle) {
|
|||
s->access_logfile->used > 1 &&
|
||||
s->access_logfile->ptr[0] != '|') {
|
||||
|
||||
close(s->log_access_fd);
|
||||
if (-1 != s->log_access_fd) close(s->log_access_fd);
|
||||
|
||||
if (-1 == (s->log_access_fd =
|
||||
open(s->access_logfile->ptr, O_APPEND | O_WRONLY | O_CREAT | O_LARGEFILE, 0644))) {
|
||||
|
|
Loading…
Reference in New Issue