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:
parent
39e24c2b06
commit
bc32acb5fe
2 changed files with 3 additions and 0 deletions
|
@ -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 */
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue