1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-04 13:02:47 -05:00

terminal.c's from_backend() no longer calls term_out(), because

term_out() can in turn call ldisc_send() which calls back to
from_backend() when local echo is enabled. This was giving rise to
crazy re-entrancy stuff and stack overflows. Instead from_backend()
deposits its data in a bufchain which term_out() empties the next
time it's called.

[originally from svn r1276]
This commit is contained in:
Simon Tatham
2001-09-18 19:41:07 +00:00
parent 8c532d7668
commit 6364ff3e71
4 changed files with 41 additions and 45 deletions

View File

@ -93,15 +93,6 @@ typedef HDC Context;
GLOBAL int rows, cols, savelines;
#define INBUF_SIZE 2048
GLOBAL unsigned char inbuf[INBUF_SIZE];
GLOBAL int inbuf_head;
#define OUTBUF_SIZE 2048
#define OUTBUF_MASK (OUTBUF_SIZE-1)
GLOBAL unsigned char outbuf[OUTBUF_SIZE];
GLOBAL int outbuf_head, outbuf_reap;
GLOBAL int has_focus;
GLOBAL int in_vbell;