Print a message when readbytes option causes EOF

This commit is contained in:
Gerhard Rieger 2021-10-31 11:07:40 +01:00
parent 39e24c2b06
commit bc32acb5fe
2 changed files with 3 additions and 0 deletions

View file

@ -48,6 +48,8 @@ Corrections:
The call "socat -r - PIPE" traced to file ./- instead of issuing a The call "socat -r - PIPE" traced to file ./- instead of issuing a
syntax error. syntax error.
Print a message when readbytes option causes EOF
Testing: Testing:
Prevent the TIMESTAMP tests from sporadically failing due do seconds Prevent the TIMESTAMP tests from sporadically failing due do seconds
overflow overflow

View file

@ -42,6 +42,7 @@ ssize_t xioread(xiofile_t *file, void *buff, size_t bufsiz) {
if (pipe->readbytes) { if (pipe->readbytes) {
if (pipe->actbytes == 0) { if (pipe->actbytes == 0) {
Info("xioread(): readbytes consumed, inserting EOF");
return 0; /* EOF by count */ return 0; /* EOF by count */
} }