comparison src/os/unix/ngx_process_cycle.c @ 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 981de6e0735d
children e584e946e198
comparison
equal deleted inserted replaced
1580:c9a0f82deb7c 1581:81774dc3db28
407 { 407 {
408 ngx_int_t i; 408 ngx_int_t i;
409 ngx_err_t err; 409 ngx_err_t err;
410 ngx_channel_t ch; 410 ngx_channel_t ch;
411 411
412 #if (NGX_BROKEN_SCM_RIGHTS)
413
414 ch.command = 0;
415
416 #else
417
412 switch (signo) { 418 switch (signo) {
413 419
414 case ngx_signal_value(NGX_SHUTDOWN_SIGNAL): 420 case ngx_signal_value(NGX_SHUTDOWN_SIGNAL):
415 ch.command = NGX_CMD_QUIT; 421 ch.command = NGX_CMD_QUIT;
416 break; 422 break;
424 break; 430 break;
425 431
426 default: 432 default:
427 ch.command = 0; 433 ch.command = 0;
428 } 434 }
435
436 #endif
429 437
430 ch.fd = -1; 438 ch.fd = -1;
431 439
432 440
433 for (i = 0; i < ngx_last_process; i++) { 441 for (i = 0; i < ngx_last_process; i++) {