[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r6368 - GNUnet/src/applications/fs/tools
From: |
gnunet |
Subject: |
[GNUnet-SVN] r6368 - GNUnet/src/applications/fs/tools |
Date: |
Sun, 17 Feb 2008 23:19:30 -0700 (MST) |
Author: grothoff
Date: 2008-02-17 23:19:30 -0700 (Sun, 17 Feb 2008)
New Revision: 6368
Modified:
GNUnet/src/applications/fs/tools/gnunet-auto-share.c
Log:
flush
Modified: GNUnet/src/applications/fs/tools/gnunet-auto-share.c
===================================================================
--- GNUnet/src/applications/fs/tools/gnunet-auto-share.c 2008-02-18
06:12:44 UTC (rev 6367)
+++ GNUnet/src/applications/fs/tools/gnunet-auto-share.c 2008-02-18
06:19:30 UTC (rev 6368)
@@ -92,6 +92,7 @@
fprintf (myout,
_("Upload of `%s' complete, URI is `%s'.\n"),
event->data.UploadCompleted.filename, fstring);
+ fflush(myout);
GNUNET_free (fstring);
}
if (ul == event->data.UploadCompleted.uc.pos)
@@ -99,12 +100,14 @@
break;
case GNUNET_FSUI_upload_aborted:
fprintf (myout, _("\nUpload aborted.\n"));
+ fflush(myout);
upload_done = GNUNET_YES;
break;
case GNUNET_FSUI_upload_error:
fprintf (myout,
_("\nError uploading file: %s"),
event->data.UploadError.message);
+ fflush(myout);
upload_done = GNUNET_YES;
break;
case GNUNET_FSUI_upload_started:
@@ -114,6 +117,7 @@
break;
default:
fprintf (myout, _("\nUnexpected event: %d\n"), event->type);
+ fflush(myout);
GNUNET_GE_BREAK (ectx, 0);
break;
}
@@ -180,6 +184,7 @@
if (0 != stat (fn, &buf))
{
fprintf (myout, "Could not stat `%s': %s\n", fn, strerror (errno));
+ fflush(myout);
GNUNET_free (fn);
return GNUNET_OK;
}
@@ -283,6 +288,7 @@
if (0 != stat (fn, &buf))
{
fprintf (myout, "Could not stat `%s': %s\n", fn, strerror (errno));
+ fflush(myout);
GNUNET_free (fn);
return GNUNET_OK;
}
@@ -350,6 +356,7 @@
if (sock == NULL)
{
fprintf (myout, _("Failed to connect to gnunetd.\n"));
+ fflush(myout);
errorCode = -1;
if (GNUNET_NO == debug_flag)
GNUNET_terminal_detach_complete (ectx, filedes, GNUNET_NO);
@@ -520,6 +527,8 @@
}
end:
GNUNET_fini (ectx, cfg);
+ if (myout != stdout)
+ fclose(myout);
return errorCode;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r6368 - GNUnet/src/applications/fs/tools,
gnunet <=