diff --git a/mbsebbs/ymrecv.c b/mbsebbs/ymrecv.c index 6c24df8b..e24759e5 100644 --- a/mbsebbs/ymrecv.c +++ b/mbsebbs/ymrecv.c @@ -141,7 +141,7 @@ et_tu: return TERROR; } sendline(ACK); - ioctl(1, TCFLSH, 0); +// ioctl(1, TCFLSH, 0); return OK; } diff --git a/mbsebbs/zmmisc.c b/mbsebbs/zmmisc.c index 022a870a..e3295d85 100644 --- a/mbsebbs/zmmisc.c +++ b/mbsebbs/zmmisc.c @@ -995,7 +995,6 @@ void canit(int fd) static char canistr[] = { 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 0 }; Syslog('z', "%s: send canit to fd %d", protname(), fd); - ioctl(fd, TCFLSH, 0); write(fd, canistr, strlen(canistr)); if (fd == 0) write(1, canistr, strlen(canistr)); diff --git a/mbsebbs/zmsend.c b/mbsebbs/zmsend.c index 5977cc3c..f25307bb 100644 --- a/mbsebbs/zmsend.c +++ b/mbsebbs/zmsend.c @@ -254,11 +254,13 @@ int getzrxinit(void) case ZRINIT: Rxflags = 0377 & Rxhdr[ZF0]; Txfcs32 = (Wantfcs32 && (Rxflags & CANFC32)); - int old = Zctlesc; - Zctlesc |= Rxflags & TESCCTL; - /* update table - was initialised to not escape */ - if (Zctlesc && !old) - zsendline_init(); + { + int old = Zctlesc; + Zctlesc |= Rxflags & TESCCTL; + /* update table - was initialised to not escape */ + if (Zctlesc && !old) + zsendline_init(); + } Rxbuflen = (0377 & Rxhdr[ZP0])+((0377 & Rxhdr[ZP1])<<8); if ( !(Rxflags & CANFDX))