From f924e6b694db7fd1d99473b3d7db7eb2b49c9e62 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 16 Jun 2004 19:36:07 +0000 Subject: nginx-0.0.7-2004-06-16-23:36:07 import --- src/os/unix/ngx_process_cycle.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/os/unix/ngx_process_cycle.c') diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c index 262b769a4..5e230d954 100644 --- a/src/os/unix/ngx_process_cycle.c +++ b/src/os/unix/ngx_process_cycle.c @@ -655,12 +655,19 @@ static void ngx_channel_handler(ngx_event_t *ev) c = ev->data; + ngx_log_debug0(NGX_LOG_DEBUG_CORE, ev->log, 0, "channel handler"); + n = ngx_read_channel(c->fd, &ch, sizeof(ngx_channel_t), ev->log); + ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, "channel: %d", n); + if (n <= 0) { return; } + ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, + "channel command: %d", ch.command); + switch (ch.command) { case NGX_CMD_QUIT: -- cgit