aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-transport-wlan-helper.c
diff options
context:
space:
mode:
authorDavid Brodski <david@brodski.eu>2011-02-28 19:05:01 +0000
committerDavid Brodski <david@brodski.eu>2011-02-28 19:05:01 +0000
commit3bd57067a779a8803c16fb2f372089c153087661 (patch)
treee04115bc92211055dabf46b3a8f6f2930be260c8 /src/transport/gnunet-transport-wlan-helper.c
parent6b5bb22d6a3c40fd15aa4f87b1e520c0723065ff (diff)
downloadgnunet-3bd57067a779a8803c16fb2f372089c153087661.tar.gz
gnunet-3bd57067a779a8803c16fb2f372089c153087661.zip
close helper at eof
Diffstat (limited to 'src/transport/gnunet-transport-wlan-helper.c')
-rw-r--r--src/transport/gnunet-transport-wlan-helper.c14
1 files changed, 11 insertions, 3 deletions
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[])
739 { 739 {
740 closeprog = 1; 740 closeprog = 1;
741 fprintf(stderr, "Write ERROR to fdpout\n"); 741 fprintf(stderr, "Write ERROR to fdpout\n");
742 exit(1);
743 } 742 }
744 else 743 else
745 { 744 {
@@ -761,7 +760,6 @@ testmode(int argc, char *argv[])
761 { 760 {
762 closeprog = 1; 761 closeprog = 1;
763 fprintf(stderr, "Read ERROR to STDIN_FILENO\n"); 762 fprintf(stderr, "Read ERROR to STDIN_FILENO\n");
764 exit(1);
765 } 763 }
766 else if (0 < readsize) 764 else if (0 < readsize)
767 { 765 {
@@ -769,6 +767,11 @@ testmode(int argc, char *argv[])
769 GNUNET_NO, GNUNET_NO); 767 GNUNET_NO, GNUNET_NO);
770 768
771 } 769 }
770 else
771 {
772 //eof
773 closeprog = 1;
774 }
772 } 775 }
773 776
774 if (FD_ISSET(fdpin, &rfds)) 777 if (FD_ISSET(fdpin, &rfds))
@@ -779,7 +782,7 @@ testmode(int argc, char *argv[])
779 { 782 {
780 closeprog = 1; 783 closeprog = 1;
781 fprintf(stderr, "Read ERROR to fdpin: %s\n", strerror(errno)); 784 fprintf(stderr, "Read ERROR to fdpin: %s\n", strerror(errno));
782 exit(1); 785 closeprog = 1;
783 } 786 }
784 else if (0 < readsize) 787 else if (0 < readsize)
785 { 788 {
@@ -787,6 +790,11 @@ testmode(int argc, char *argv[])
787 GNUNET_NO, GNUNET_NO); 790 GNUNET_NO, GNUNET_NO);
788 791
789 } 792 }
793 else
794 {
795 //eof
796 closeprog = 1;
797 }
790 } 798 }
791 799
792 } 800 }