Cygwin can not pass SCM_RIGHTS via unix socket, use signals
Igor Sysoev
14 years ago
20 | 20 | |
21 | 21 | #ifdef __CYGWIN__ |
22 | 22 | #define timezonevar /* timezone is variable */ |
23 | #define NGX_BROKEN_SCM_RIGHTS 1 | |
23 | 24 | #endif |
24 | 25 | |
25 | 26 |
408 | 408 | ngx_err_t err; |
409 | 409 | ngx_channel_t ch; |
410 | 410 | |
411 | #if (NGX_BROKEN_SCM_RIGHTS) | |
412 | ||
413 | ch.command = 0; | |
414 | ||
415 | #else | |
416 | ||
411 | 417 | switch (signo) { |
412 | 418 | |
413 | 419 | case ngx_signal_value(NGX_SHUTDOWN_SIGNAL): |
425 | 431 | default: |
426 | 432 | ch.command = 0; |
427 | 433 | } |
434 | ||
435 | #endif | |
428 | 436 | |
429 | 437 | ch.fd = -1; |
430 | 438 |