From 6e5387fb15b70957f892200b9de8eed93f90bb3f Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Sun, 24 Jun 2018 16:04:22 -0400 Subject: [PATCH] Fix console networking issue --- src/bsd.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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) { -- 2.30.2