From 25e9522af439956ad0d42b1cd7ac4c3e5aa833f5 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Fri, 4 Nov 2022 15:09:48 +0800 Subject: [PATCH] pty: remove uv_read error log --- src/pty.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pty.c b/src/pty.c index adfcc3e..759410a 100644 --- a/src/pty.c +++ b/src/pty.c @@ -65,7 +65,6 @@ static void read_cb(uv_stream_t *stream, ssize_t n, const uv_buf_t *buf) { pty_process *process = (pty_process *) stream->data; if (n <= 0) { if (n == UV_ENOBUFS || n == 0) return; - if (n != UV_EOF) printf("== uv_read failed with error %ld: %s\n", n, uv_strerror(n)); process->read_cb(process, NULL, true); goto done; } -- 2.43.4