nginx-0.0.1-2002-12-23-09:29:22 import
diff --git a/src/core/nginx.c b/src/core/nginx.c
index 3d1d11d..17a3d10 100644
--- a/src/core/nginx.c
+++ b/src/core/nginx.c
@@ -39,6 +39,9 @@
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 @@
/* 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);