From: Shuanglei Tao Date: Fri, 4 Nov 2022 07:09:48 +0000 (+0800) Subject: pty: remove uv_read error log X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=25e9522af439956ad0d42b1cd7ac4c3e5aa833f5;p=ttyd.git pty: remove uv_read error log --- 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; }