Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 1996 17:50:03 -0800 (PST)
From:      Warner Losh <imp@village.org>
To:        freebsd-bugs
Subject:   Re: bin/1589: ftp fails to flush output
Message-ID:  <199612180150.RAA07797@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/1589; it has been noted by GNATS.

From: Warner Losh <imp@village.org>
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612180150.RAA07797>