comparison src/core/nginx.c @ 40:d5d4f3bba6f0

nginx-0.0.1-2002-12-26-10:24:21 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 26 Dec 2002 07:24:21 +0000
parents 83fa61cd3d2f
children 59e7c7f30d49
comparison
equal deleted inserted replaced
39:83fa61cd3d2f 40:d5d4f3bba6f0
54 54
55 ngx_init_sockets(&ngx_log); 55 ngx_init_sockets(&ngx_log);
56 56
57 /* TODO: read config */ 57 /* TODO: read config */
58 58
59 #if 0 59 #if 1
60 ngx_memzero(&conf, sizeof(ngx_conf_t)); 60 ngx_memzero(&conf, sizeof(ngx_conf_t));
61 ngx_test_null(conf.args, 61 ngx_test_null(conf.args,
62 ngx_create_array(ngx_pool, 10, sizeof(ngx_str_t)), 1); 62 ngx_create_array(ngx_pool, 10, sizeof(ngx_str_t)), 1);
63 conf.pool = ngx_pool; 63 conf.pool = ngx_pool;
64 conf.log = &ngx_log; 64 conf.log = &ngx_log;
65 conf.modules = ngx_http_modules;
65 66
66 conf_file.len = sizeof("nginx.conf") - 1; 67 conf_file.len = sizeof("nginx.conf") - 1;
67 conf_file.data = "nginx.conf"; 68 conf_file.data = "nginx.conf";
68 69
69 ngx_conf_parse(&conf, &conf_file); 70 ngx_conf_parse(&conf, &conf_file);