aboutsummaryrefslogtreecommitdiff
path: root/src/core/nginx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r--src/core/nginx.c7
1 files changed, 5 insertions, 2 deletions
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) {