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:
Jan Kneschke 2005-02-28 10:54:23 +00:00
parent 75fae49e37
commit 26b184ba6f
1 changed files with 1 additions and 11 deletions

View File

@ -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,