diff options
author | Igor Sysoev <igor@sysoev.ru> | 2002-12-23 06:29:22 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2002-12-23 06:29:22 +0000 |
commit | a6717c4e59a24bb11dab29b12fb9851bb41293c0 (patch) | |
tree | 3752e2a2fa8f5097b43d946b5b43e4aa90fbe98c /src/core/nginx.c | |
parent | 41d5a4f2ae515a62008d22997c431ff54cfc7500 (diff) | |
download | nginx-a6717c4e59a24bb11dab29b12fb9851bb41293c0.tar.gz nginx-a6717c4e59a24bb11dab29b12fb9851bb41293c0.zip |
nginx-0.0.1-2002-12-23-09:29:22 import
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r-- | src/core/nginx.c | 16 |
1 files changed, 16 insertions, 0 deletions
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); |