gnunet-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUnet-developers] gnunet-search: fflush after printing each search


From: Christian Grothoff
Subject: Re: [GNUnet-developers] gnunet-search: fflush after printing each search result
Date: Sat, 14 Feb 2009 14:22:26 -0700
User-agent: KMail/1.9.9

Done. -Chrisitan

On Saturday 14 February 2009 08:13:37 am Yunta wrote:
> Hi,
>
> I'd like to suggest this:
>
> Index: src/applications/fs/tools/gnunet-search.c
> ===================================================================
> --- src/applications/fs/tools/gnunet-search.c (revision 8235)
> +++ src/applications/fs/tools/gnunet-search.c (working copy)
> @@ -103,6 +103,7 @@
>          printf ("gnunet-download %s\n", uri);
>        printMeta (event->data.SearchResult.fi.meta);
>        printf ("\n");
> +      fflush(stdout);
>        GNUNET_free_non_null (filename);
>        GNUNET_free (uri);
>
> Change is small and probably won't break anything.
> It is very helpful when piping gnunet-search results to another process
> or just redirecting output to file.
>
> br,
> yunta
>
>
> _______________________________________________
> GNUnet-developers mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/gnunet-developers






reply via email to

[Prev in Thread] Current Thread [Next in Thread]