this one belongs to the last changeset
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@55 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
75fae49e37
commit
26b184ba6f
12
src/server.c
12
src/server.c
|
@ -175,11 +175,6 @@ static server *server_init(void) {
|
|||
|
||||
srv->split_vals = array_init();
|
||||
|
||||
|
||||
srv->dot_stack.ptr = NULL;
|
||||
srv->dot_stack.used = 0;
|
||||
srv->dot_stack.size = 0;
|
||||
|
||||
srv->config_patches = buffer_array_init();
|
||||
for (i = 0; patches[i]; i++) {
|
||||
buffer *b;
|
||||
|
@ -268,11 +263,6 @@ static void server_free(server *srv) {
|
|||
array_free(srv->srvconf.modules);
|
||||
array_free(srv->split_vals);
|
||||
|
||||
for (i = 0; i < srv->dot_stack.size; i++) {
|
||||
free(srv->dot_stack.ptr[i]);
|
||||
}
|
||||
free(srv->dot_stack.ptr);
|
||||
|
||||
free(srv);
|
||||
}
|
||||
|
||||
|
@ -1002,7 +992,7 @@ int main (int argc, char **argv) {
|
|||
if (srv->srvconf.pid_file->used &&
|
||||
srv->srvconf.changeroot->used == 0) {
|
||||
if (0 != unlink(srv->srvconf.pid_file->ptr)) {
|
||||
if (errno != EPERM) {
|
||||
if (errno != EACCES && errno != EPERM) {
|
||||
log_error_write(srv, __FILE__, __LINE__, "sbds",
|
||||
"unlink failed for:",
|
||||
srv->srvconf.pid_file,
|
||||
|
|
Loading…
Reference in New Issue