Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-10-18 15:28:21 +0400
committerIgor Sysoev <igor@sysoev.ru>2007-10-18 15:28:21 +0400
commit31d6f9590a1628e6d7b34f1efe7341abbb93ae09 (patch)
tree3293c9b54aa76d97c31b39cc114fbe50f162ccb7 /src/os/unix/ngx_process_cycle.c
parent12446d82496b9da38f0e638671a3082703f4c95d (diff)
Cygwin can not pass SCM_RIGHTS via unix socket, use signals
Diffstat (limited to 'src/os/unix/ngx_process_cycle.c')
-rw-r--r--src/os/unix/ngx_process_cycle.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c
index 4705f3951..631597ef4 100644
--- a/src/os/unix/ngx_process_cycle.c
+++ b/src/os/unix/ngx_process_cycle.c
@@ -409,6 +409,12 @@ ngx_signal_worker_processes(ngx_cycle_t *cycle, int signo)
ngx_err_t err;
ngx_channel_t ch;
+#if (NGX_BROKEN_SCM_RIGHTS)
+
+ ch.command = 0;
+
+#else
+
switch (signo) {
case ngx_signal_value(NGX_SHUTDOWN_SIGNAL):
@@ -427,6 +433,8 @@ ngx_signal_worker_processes(ngx_cycle_t *cycle, int signo)
ch.command = 0;
}
+#endif
+
ch.fd = -1;