From: David Brodski Date: Mon, 28 Feb 2011 19:05:01 +0000 (+0000) Subject: close helper at eof X-Git-Tag: initial-import-from-subversion-38251~19043 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3bd57067a779a8803c16fb2f372089c153087661;p=oweals%2Fgnunet.git close helper at eof --- diff --git a/src/transport/gnunet-transport-wlan-helper.c b/src/transport/gnunet-transport-wlan-helper.c index 2f7277dc0..214afe0b7 100644 --- a/src/transport/gnunet-transport-wlan-helper.c +++ b/src/transport/gnunet-transport-wlan-helper.c @@ -739,7 +739,6 @@ testmode(int argc, char *argv[]) { closeprog = 1; fprintf(stderr, "Write ERROR to fdpout\n"); - exit(1); } else { @@ -761,7 +760,6 @@ testmode(int argc, char *argv[]) { closeprog = 1; fprintf(stderr, "Read ERROR to STDIN_FILENO\n"); - exit(1); } else if (0 < readsize) { @@ -769,6 +767,11 @@ testmode(int argc, char *argv[]) GNUNET_NO, GNUNET_NO); } + else + { + //eof + closeprog = 1; + } } if (FD_ISSET(fdpin, &rfds)) @@ -779,7 +782,7 @@ testmode(int argc, char *argv[]) { closeprog = 1; fprintf(stderr, "Read ERROR to fdpin: %s\n", strerror(errno)); - exit(1); + closeprog = 1; } else if (0 < readsize) { @@ -787,6 +790,11 @@ testmode(int argc, char *argv[]) GNUNET_NO, GNUNET_NO); } + else + { + //eof + closeprog = 1; + } } }