1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-08 21:36:34 +00:00

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

@ -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 */
}