comparison src/os/unix/ngx_process_cycle.c @ 357:e260514b9ad4

nginx-0.0.7-2004-06-16-23:36:07 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 16 Jun 2004 19:36:07 +0000
parents 0fb6c53fb135
children 239e37d44a34
comparison
equal deleted inserted replaced
356:2e3cbc1bbe3c 357:e260514b9ad4
653 ngx_channel_t ch; 653 ngx_channel_t ch;
654 ngx_connection_t *c; 654 ngx_connection_t *c;
655 655
656 c = ev->data; 656 c = ev->data;
657 657
658 ngx_log_debug0(NGX_LOG_DEBUG_CORE, ev->log, 0, "channel handler");
659
658 n = ngx_read_channel(c->fd, &ch, sizeof(ngx_channel_t), ev->log); 660 n = ngx_read_channel(c->fd, &ch, sizeof(ngx_channel_t), ev->log);
661
662 ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, "channel: %d", n);
659 663
660 if (n <= 0) { 664 if (n <= 0) {
661 return; 665 return;
662 } 666 }
667
668 ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0,
669 "channel command: %d", ch.command);
663 670
664 switch (ch.command) { 671 switch (ch.command) {
665 672
666 case NGX_CMD_QUIT: 673 case NGX_CMD_QUIT:
667 ngx_quit = 1; 674 ngx_quit = 1;