diff options
Diffstat (limited to 'sysdep')
-rw-r--r-- | sysdep/unix/io.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 9d54a2c3..da5acbde 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -1639,14 +1639,19 @@ sk_maybe_write(sock *s) { int e; + debug("sk_maybe_write 1 %d", s->type); switch (s->type) { case SK_TCP: case SK_MAGIC: case SK_UNIX: + debug("sk_maybe_write 2 %p %p", s->ttx, s->tpos); while (s->ttx != s->tpos) { + debug("sk_maybe_write 3 %p %p", s->ttx, s->tpos); e = write(s->fd, s->ttx, s->tpos - s->ttx); + if (s->type == SK_UNIX) + log(L_INFO "unix write %d %d", s->fd, e); if (e < 0) { |