aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_process_cycle.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-06-21 15:59:32 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-06-21 15:59:32 +0000
commitef06648615d6ce6e000e6c737f80c2ba9fa04d3a (patch)
tree5f840689ca43ecba7218f9709f1bdfaa27611f53 /src/os/unix/ngx_process_cycle.c
parent73a73b5a60b1c6c985f3e9a5d7cddbe292ad01a4 (diff)
downloadnginx-ef06648615d6ce6e000e6c737f80c2ba9fa04d3a.tar.gz
nginx-ef06648615d6ce6e000e6c737f80c2ba9fa04d3a.zip
nginx-0.0.7-2004-06-21-19:59:32 import
Diffstat (limited to 'src/os/unix/ngx_process_cycle.c')
-rw-r--r--src/os/unix/ngx_process_cycle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c
index 818676ae9..fec4210d7 100644
--- a/src/os/unix/ngx_process_cycle.c
+++ b/src/os/unix/ngx_process_cycle.c
@@ -786,7 +786,7 @@ ngx_int_t ngx_write_channel(ngx_socket_t s, ngx_channel_t *ch, size_t size,
cmsg.cm.cmsg_len = sizeof(cmsg);
cmsg.cm.cmsg_level = SOL_SOCKET;
cmsg.cm.cmsg_type = SCM_RIGHTS;
- *(int *) CMSG_DATA(&cmsg) = ch->fd;
+ *(int *) CMSG_DATA(&cmsg.cm) = ch->fd;
}
#else
@@ -896,7 +896,7 @@ ngx_int_t ngx_read_channel(ngx_socket_t s, ngx_channel_t *ch, size_t size,
return NGX_ERROR;
}
- ch->fd = *(int *) CMSG_DATA(&cmsg);
+ ch->fd = *(int *) CMSG_DATA(&cmsg.cm);
}
if (msg.msg_flags & (MSG_TRUNC|MSG_CTRUNC)) {