You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Nicolás Lichtmaier <ni...@reloco.com.ar> on 2004/05/22 23:54:59 UTC
Flushing estoud before exit?
> /* Ensure everything is printed on stdout, so the user sees any
> print errors. */
> SVN_INT_ERR (svn_cmdline_fflush (stdout));
> return EXIT_SUCCESS;
There's absolutelly no need to flush a c stream before exiting a
program, as the language defines that streams are flushing when a
program ends by normal means.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Flushing estoud before exit?
Posted by Greg Hudson <gh...@MIT.EDU>.
On Sat, 2004-05-22 at 19:54, Nicolás Lichtmaier wrote:
> There's absolutelly no need to flush a c stream before exiting a
> program, as the language defines that streams are flushing when a
> program ends by normal means.
The point isn't to make sure the output is flushed, but to make sure we
report errors if, for some reason, the output cannot be flushed. For
example, "svn log > filename" should report a disk-full error if we run
out of space writing the log output.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org