Skip to content

Commit a554ca6

Browse files
committed
Debug log errno on uncommon client write failure
Log the reason of a client write failure in an uncommon case.
1 parent 129acbd commit a554ca6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

endlessh.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,8 @@ sendline(struct client *client, int max_line_length, unsigned long *rng)
645645
} else if (errno == EAGAIN || errno == EWOULDBLOCK) {
646646
return client; /* don't care */
647647
} else {
648+
if (errno != EPIPE)
649+
logmsg(log_debug, "errno = %d, %s", errno, strerror(errno));
648650
client_destroy(client);
649651
return 0;
650652
}

0 commit comments

Comments
 (0)