mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 06:03:31 -06:00
Cygwin can not pass SCM_RIGHTS via unix socket, use signals
This commit is contained in:
parent
12446d8249
commit
31d6f9590a
@ -21,6 +21,7 @@
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
#define timezonevar /* timezone is variable */
|
||||
#define NGX_BROKEN_SCM_RIGHTS 1
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user