diff options
-rw-r--r-- | pttbbs/mbbsd/chat.c | 4 | ||||
-rw-r--r-- | pttbbs/mbbsd/io.c | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/pttbbs/mbbsd/chat.c b/pttbbs/mbbsd/chat.c index 9ce7d6c3..1de0b036 100644 --- a/pttbbs/mbbsd/chat.c +++ b/pttbbs/mbbsd/chat.c @@ -1,10 +1,6 @@ /* $Id$ */ #include "bbs.h" -#ifndef DBCSAWARE -#define dbcs_off (1) -#endif - #define STOP_LINE (t_lines-3) static int chatline; static FILE *flog; diff --git a/pttbbs/mbbsd/io.c b/pttbbs/mbbsd/io.c index a737efa5..42e24f10 100644 --- a/pttbbs/mbbsd/io.c +++ b/pttbbs/mbbsd/io.c @@ -98,7 +98,9 @@ oflush(void) } #endif // DBG_OUTRPT - fsync(1); + // XXX to flush, set TCP_NODELAY instead. + // fsync does NOT work on network sockets. + // fsync(1); } void @@ -208,7 +210,6 @@ wrapped_tty_read(unsigned char *buf, size_t max) sprintf(xbuf, ESC_STR "[s" ESC_STR "[2;1H [%ld] " ESC_STR "[u", len); write(1, xbuf, strlen(xbuf)); - fsync(1); } #endif // DBG_OUTRPT return len; |