summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2019-04-01 17:51:54 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2020-08-28 23:20:06 +0200
commit9d2ee4aeaa77e18de916e5a47f781ee7361e9f57 (patch)
treef3d9b58602b80aac82a1abbc9daf94262634cde1
parent7755ca116355a3f02d307ad0fc937ffc8b308486 (diff)
WIP debug ioold/debug2
-rw-r--r--sysdep/unix/io.c5
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)
{