2
0
Fork 0

fixed segfault in server_free() if workers are not allocated yet; removed virtualrequest.h include from base.h

personal/stbuehler/wip
Thomas Porzelt 2008-09-30 20:26:21 +02:00
parent 36b0ae3628
commit 604042b24c
2 changed files with 2 additions and 3 deletions

View File

@ -44,7 +44,6 @@ typedef struct connection connection;
#include "plugin.h"
#include "request.h"
#include "response.h"
#include "virtualrequest.h"
#include "log.h"
#include "connection.h"

View File

@ -85,7 +85,7 @@ void server_free(server* srv) {
/* join all workers */
{
guint i;
for (i = 1; i < srv->worker_count; i++) {
for (i = 1; i < srv->workers->len; i++) {
worker *wrk;
wrk = g_array_index(srv->workers, worker*, i);
worker_exit(srv->main_worker, wrk);
@ -96,7 +96,7 @@ void server_free(server* srv) {
/* free all workers */
{
guint i;
for (i = 0; i < srv->worker_count; i++) {
for (i = 0; i < srv->workers->len; i++) {
worker *wrk;
struct ev_loop *loop;
wrk = g_array_index(srv->workers, worker*, i);