From a6717c4e59a24bb11dab29b12fb9851bb41293c0 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 23 Dec 2002 06:29:22 +0000 Subject: nginx-0.0.1-2002-12-23-09:29:22 import --- src/core/nginx.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/core/nginx.c') diff --git a/src/core/nginx.c b/src/core/nginx.c index 3d1d11de6..17a3d10c3 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -39,6 +39,9 @@ ngx_array_t *ngx_listening_sockets; int main(int argc, char *const *argv) { + ngx_str_t conf_file; + ngx_conf_t conf; + /* STUB */ ngx_log.log_level = NGX_LOG_DEBUG; @@ -53,6 +56,19 @@ int main(int argc, char *const *argv) /* TODO: read config */ +#if 1 + ngx_memzero(&conf, sizeof(ngx_conf_t)); + ngx_test_null(conf.args, + ngx_create_array(ngx_pool, 10, sizeof(ngx_str_t)), 1); + conf.pool = ngx_pool; + conf.log = &ngx_log; + + conf_file.len = sizeof("nginx.conf") - 1; + conf_file.data = "nginx.conf"; + + ngx_conf_parse(&conf, &conf_file); +#endif + ngx_test_null(ngx_listening_sockets, ngx_create_array(ngx_pool, 10, sizeof(ngx_listen_t)), 1); -- cgit