From 599d21050d9e8055d2b440baf244ce78b2291db8 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 7 Dec 2023 09:15:41 -0500 Subject: [PATCH] Only log error when not sigpipe --- src/zm_stream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zm_stream.cpp b/src/zm_stream.cpp index dccf2ecc1..4bf3d4275 100644 --- a/src/zm_stream.cpp +++ b/src/zm_stream.cpp @@ -295,7 +295,8 @@ bool StreamBase::sendTextFrame(const char *frame_text) { } int rc = fwrite(buffer, n_bytes, 1, stdout); if (rc != 1) { - Error("Unable to send stream text frame: %d %s", rc, strerror(errno)); + if (!zm_terminate) + Error("Unable to send stream text frame: %d %s", rc, strerror(errno)); return false; } fputs("\r\n\r\n", stdout);