From owner-freebsd-bugs Tue Dec 17 17:50:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA07803 for bugs-outgoing; Tue, 17 Dec 1996 17:50:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA07797; Tue, 17 Dec 1996 17:50:03 -0800 (PST) Date: Tue, 17 Dec 1996 17:50:03 -0800 (PST) Message-Id: <199612180150.RAA07797@freefall.freebsd.org> To: freebsd-bugs Cc: From: Warner Losh Subject: Re: bin/1589: ftp fails to flush output Reply-To: Warner Losh Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/1589; it has been noted by GNATS. From: Warner Losh To: freebsd-gnats-submit@freebsd.org, msmith@cain.atrad.adelaide.edu.au Cc: Subject: Re: bin/1589: ftp fails to flush output Date: Tue, 17 Dec 1996 18:42:54 -0700 This patch looks interesting, but it only handles the case where you are doing an ls. A more general form is needed. The best place to do this would be in the main loop at around line 257 of main.c. If you always flushed stdout here, rather than just if we're running from a tty, then you would have general results. That is change: for (;;) { if (fromatty) { printf("ftp> "); (void) fflush(stdout); } to for (;;) { if (fromatty) printf("ftp> "); (void) fflush(stdout);