gnunet-developers
[Top][All Lists]
Advanced

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

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


From: Yunta
Subject: [GNUnet-developers] gnunet-search: fflush after printing each search result
Date: Sat, 14 Feb 2009 17:13:37 +0200

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




reply via email to

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