From e0207bb8eb230d4750c4f328af9afbb79051a026 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 23 Jun 2004 15:18:17 +0000 Subject: nginx-0.0.7-2004-06-23-19:18:17 import --- src/core/nginx.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/nginx.c b/src/core/nginx.c index cef343418..f657efbc4 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -72,8 +72,6 @@ ngx_module_t ngx_core_module = { ngx_uint_t ngx_max_module; -ngx_uint_t ngx_inherited; - int main(int argc, char *const *argv) { @@ -162,6 +160,9 @@ int main(int argc, char *const *argv) #if (WIN32) #if 0 + + TODO: + if (ccf->run_as_service) { if (ngx_service(cycle->log) == NGX_ERROR) { return 1; @@ -177,6 +178,8 @@ int main(int argc, char *const *argv) if (ngx_daemon(cycle->log) == NGX_ERROR) { return 1; } + + ngx_daemonized = 1; } if (ngx_create_pidfile(cycle, NULL) == NGX_ERROR) { -- cgit