From 26b184ba6ffb694e8540005fd58c4c56866bd3e0 Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Mon, 28 Feb 2005 10:54:23 +0000 Subject: [PATCH] this one belongs to the last changeset git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@55 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/server.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/server.c b/src/server.c index 1a2d2d5c..0b109a9a 100644 --- a/src/server.c +++ b/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,