[PATCH 1/1] monitor_wrap: do not give error but debug message

Christian Hesse list at eworm.de
Fri Mar 20 08:38:37 AEDT 2015


From: Christian Hesse <mail at eworm.de>

Commit 72ef7c14 (support --without-openssl at configure time) added an
error message in mm_request_receive() when socket is closed. Make this a
debug message.

Signed-off-by: Christian Hesse <mail at eworm.de>
---
 monitor_wrap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/monitor_wrap.c b/monitor_wrap.c
index b379f05..f13894a 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -154,7 +154,7 @@ mm_request_receive(int sock, Buffer *m)
 
 	if (atomicio(read, sock, buf, sizeof(buf)) != sizeof(buf)) {
 		if (errno == EPIPE) {
-			error("%s: socket closed", __func__);
+			debug("%s: socket closed", __func__);
 			cleanup_exit(255);
 		}
 		fatal("%s: read: %s", __func__, strerror(errno));
-- 
2.3.3



More information about the openssh-unix-dev mailing list