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:
parent
80f5105dad
commit
c06c9c730f
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user