1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 01:18:00 +00:00

Fill in missing implementation of pty_sendbuffer.

Going through all the backends' send() and sendbuffer() routines, I
noticed that the Unix pty backend is the only one where the return
value from send() doesn't match what sendbuffer() would tell you,
apparently because sendbuffer() was a stub implementation that I never
got round to filling in properly.

But pty masters _can_ back up, and if they do, we should return the
appropriate data.
This commit is contained in:
Simon Tatham 2021-09-12 09:52:46 +01:00
parent 80f5105dad
commit c06c9c730f

View File

@ -1414,8 +1414,8 @@ static void pty_close(Pty *pty)
*/
static size_t pty_sendbuffer(Backend *be)
{
/* Pty *pty = container_of(be, Pty, backend); */
return 0;
Pty *pty = container_of(be, Pty, backend);
return bufchain_size(&pty->output_data);
}
/*