From: Ari Johnson Date: Sun, 24 Jun 2018 20:04:22 +0000 (-0400) Subject: Fix console networking issue X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=6e5387fb15b70957f892200b9de8eed93f90bb3f;p=cobramush.git Fix console networking issue --- diff --git a/src/bsd.c b/src/bsd.c index 38e428f..53a4f39 100644 --- a/src/bsd.c +++ b/src/bsd.c @@ -2210,10 +2210,8 @@ process_output(DESC *d) for (qp = &d->output.head; ((cur = *qp) != NULL);) { #ifdef COMPILE_CONSOLE - if (d->descriptor == 0) { - cnt = write(STDOUT_FILENO, cur->start, cur->nchars); - } -#else /* COMPILE_CONSOLE */ + cnt = write(STDOUT_FILENO, cur->start, cur->nchars); +#else #ifdef HAS_OPENSSL if (d->ssl) { cnt = 0; @@ -2223,7 +2221,6 @@ process_output(DESC *d) return 1; /* Need to retry */ } else { #endif -#endif /* COMPILE_CONSOLE */ cnt = send(d->descriptor, cur->start, cur->nchars, 0); if (cnt < 0) { #ifdef WIN32 @@ -2238,11 +2235,10 @@ process_output(DESC *d) return 1; return 0; } -#ifndef COMPILE_CONSOLE #ifdef HAS_OPENSSL } #endif -#endif +#endif /* COMPILE_CONSOLE */ d->output_size -= cnt; d->output_chars += cnt; if (cnt == cur->nchars) {