Klaus Demo nginx / 31d6f95
Cygwin can not pass SCM_RIGHTS via unix socket, use signals Igor Sysoev 14 years ago
2 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2020
2121 #ifdef __CYGWIN__
2222 #define timezonevar /* timezone is variable */
23 #define NGX_BROKEN_SCM_RIGHTS 1
2324 #endif
2425
2526
408408 ngx_err_t err;
409409 ngx_channel_t ch;
410410
411 #if (NGX_BROKEN_SCM_RIGHTS)
412
413 ch.command = 0;
414
415 #else
416
411417 switch (signo) {
412418
413419 case ngx_signal_value(NGX_SHUTDOWN_SIGNAL):
425431 default:
426432 ch.command = 0;
427433 }
434
435 #endif
428436
429437 ch.fd = -1;
430438