gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r14552 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r14552 - gnunet/src/transport
Date: Mon, 28 Feb 2011 20:05:01 +0100

Author: brodski
Date: 2011-02-28 20:05:01 +0100 (Mon, 28 Feb 2011)
New Revision: 14552

Modified:
   gnunet/src/transport/gnunet-transport-wlan-helper.c
Log:
close helper at eof

Modified: gnunet/src/transport/gnunet-transport-wlan-helper.c
===================================================================
--- gnunet/src/transport/gnunet-transport-wlan-helper.c 2011-02-28 11:06:03 UTC 
(rev 14551)
+++ gnunet/src/transport/gnunet-transport-wlan-helper.c 2011-02-28 19:05:01 UTC 
(rev 14552)
@@ -739,7 +739,6 @@
             {
               closeprog = 1;
               fprintf(stderr, "Write ERROR to fdpout\n");
-              exit(1);
             }
           else
             {
@@ -761,7 +760,6 @@
             {
               closeprog = 1;
               fprintf(stderr, "Read ERROR to STDIN_FILENO\n");
-              exit(1);
             }
           else if (0 < readsize)
             {
@@ -769,6 +767,11 @@
                   GNUNET_NO, GNUNET_NO);
 
             }
+          else
+            {
+              //eof
+              closeprog = 1;
+            }
         }
 
       if (FD_ISSET(fdpin, &rfds))
@@ -779,7 +782,7 @@
             {
               closeprog = 1;
               fprintf(stderr, "Read ERROR to fdpin: %s\n", strerror(errno));
-              exit(1);
+              closeprog = 1;
             }
           else if (0 < readsize)
             {
@@ -787,6 +790,11 @@
                   GNUNET_NO, GNUNET_NO);
 
             }
+          else
+            {
+              //eof
+              closeprog = 1;
+            }
         }
 
     }




reply via email to

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