Mercurial > hg > nginx
changeset 1581:81774dc3db28
Cygwin can not pass SCM_RIGHTS via unix socket, use signals
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 18 Oct 2007 11:28:21 +0000 |
parents | c9a0f82deb7c |
children | 227152b66458 |
files | src/os/unix/ngx_posix_config.h src/os/unix/ngx_process_cycle.c |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os/unix/ngx_posix_config.h Wed Oct 17 13:22:26 2007 +0000 +++ b/src/os/unix/ngx_posix_config.h Thu Oct 18 11:28:21 2007 +0000 @@ -21,6 +21,7 @@ #ifdef __CYGWIN__ #define timezonevar /* timezone is variable */ +#define NGX_BROKEN_SCM_RIGHTS 1 #endif
--- a/src/os/unix/ngx_process_cycle.c Wed Oct 17 13:22:26 2007 +0000 +++ b/src/os/unix/ngx_process_cycle.c Thu Oct 18 11:28:21 2007 +0000 @@ -409,6 +409,12 @@ 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 @@ ch.command = 0; } +#endif + ch.fd = -1;