Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
954bbed
)
Fixed the reacquisition of the code value from the msg2sndr list.
author
Wayne Davison
<wayned@samba.org>
Thu, 16 Mar 2006 01:27:26 +0000
(
01:27
+0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 16 Mar 2006 01:27:26 +0000
(
01:27
+0000)
io.c
patch
|
blob
|
blame
|
history
diff --git
a/io.c
b/io.c
index
4ade1ea
..
0fa5af9
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-1103,10
+1103,11
@@
static void writefd_unbuffered(int fd,char *buf,size_t len)
if (msg2sndr.head && !defer_forwarding_messages) {
struct msg_list_item *m = msg2sndr.head;
+ int code = (IVAL(m->buf,0) >> 24) - MPLEX_BASE;
if (!(msg2sndr.head = m->next))
msg2sndr.tail = NULL;
defer_forwarding_messages = 1;
- io_multiplex_write(
IVAL(m->buf,0)
, m->buf+4, m->len-4);
+ io_multiplex_write(
code
, m->buf+4, m->len-4);
defer_forwarding_messages = 0;
free(m);
continue;