mirror of
https://repo.or.cz/socat.git
synced 2025-07-12 22:53:24 +00:00
writefull() respects total inactivity timeout
This commit is contained in:
parent
1878ae93fd
commit
1154e69d3e
12 changed files with 31 additions and 15 deletions
|
@ -184,7 +184,7 @@ ssize_t xioread_readline(struct single *pipe, void *buff, size_t bufsiz) {
|
|||
/* we must carriage return, because readline will first print the
|
||||
prompt */
|
||||
ssize_t writt;
|
||||
writt = writefull(pipe->fd, "\r", 1);
|
||||
writt = writefull(pipe->fd, "\r", 1, NULL);
|
||||
if (writt < 0) {
|
||||
Warn2("write(%d, \"\\r\", 1): %s",
|
||||
pipe->fd, strerror(errno));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue