aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/unix/ngx_daemon.c')
-rw-r--r--src/os/unix/ngx_daemon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os/unix/ngx_daemon.c b/src/os/unix/ngx_daemon.c
index ab6721108..385c49b6c 100644
--- a/src/os/unix/ngx_daemon.c
+++ b/src/os/unix/ngx_daemon.c
@@ -26,6 +26,7 @@ ngx_daemon(ngx_log_t *log)
exit(0);
}
+ ngx_parent = ngx_pid;
ngx_pid = ngx_getpid();
if (setsid() == -1) {