# HG changeset patch # User Igor Sysoev # Date 1192706901 0 # Node ID 81774dc3db287015bed086a778cecf36680463e0 # Parent c9a0f82deb7ce688c5ed9ae3fb509fde4faca062 Cygwin can not pass SCM_RIGHTS via unix socket, use signals diff --git a/src/os/unix/ngx_posix_config.h b/src/os/unix/ngx_posix_config.h --- a/src/os/unix/ngx_posix_config.h +++ b/src/os/unix/ngx_posix_config.h @@ -21,6 +21,7 @@ #ifdef __CYGWIN__ #define timezonevar /* timezone is variable */ +#define NGX_BROKEN_SCM_RIGHTS 1 #endif diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c --- 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 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 ch.command = 0; } +#endif + ch.fd = -1;