gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r32479 - msh/src


From: gnunet
Subject: [GNUnet-SVN] r32479 - msh/src
Date: Tue, 25 Feb 2014 22:10:14 +0100

Author: harsha
Date: 2014-02-25 22:10:13 +0100 (Tue, 25 Feb 2014)
New Revision: 32479

Modified:
   msh/src/server.c
Log:
Do not disconnect the client when there is a read pending on STDOUT or STDERR 
pipes.


Modified: msh/src/server.c
===================================================================
--- msh/src/server.c    2014-02-25 11:16:59 UTC (rev 32478)
+++ msh/src/server.c    2014-02-25 21:10:13 UTC (rev 32479)
@@ -560,7 +560,8 @@
   if (GNUNET_SYSERR == redirect_stream (exec_ctx->fout,
                                         exec_ctx->client))
   {
-    GNUNET_SERVER_client_disconnect (exec_ctx->client);
+    if (GNUNET_SCHEDULER_NO_TASK == exec_ctx->ferr_task)
+      GNUNET_SERVER_client_disconnect (exec_ctx->client);
     return;
   }
   exec_ctx->fout_task = 
@@ -586,7 +587,8 @@
   if (GNUNET_SYSERR == redirect_stream (exec_ctx->ferr,
                                         exec_ctx->client))
   {
-    GNUNET_SERVER_client_disconnect (exec_ctx->client);
+    if (GNUNET_SCHEDULER_NO_TASK == exec_ctx->fout_task)
+      GNUNET_SERVER_client_disconnect (exec_ctx->client);
     return;
   }
   exec_ctx->ferr_task = 




reply via email to

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