From bc32acb5fefdcadaaebf7cb132fb6e47b0d8b88a Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Sun, 31 Oct 2021 11:07:40 +0100 Subject: [PATCH] Print a message when readbytes option causes EOF --- CHANGES | 2 ++ xioread.c | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index 8d1ce82..dfd0b74 100644 --- a/CHANGES +++ b/CHANGES @@ -48,6 +48,8 @@ Corrections: The call "socat -r - PIPE" traced to file ./- instead of issuing a syntax error. + Print a message when readbytes option causes EOF + Testing: Prevent the TIMESTAMP tests from sporadically failing due do seconds overflow diff --git a/xioread.c b/xioread.c index 24f3c88..aa029a9 100644 --- a/xioread.c +++ b/xioread.c @@ -42,6 +42,7 @@ ssize_t xioread(xiofile_t *file, void *buff, size_t bufsiz) { if (pipe->readbytes) { if (pipe->actbytes == 0) { + Info("xioread(): readbytes consumed, inserting EOF"); return 0; /* EOF by count */ }