summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-transport-wlan-receiver.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-11-16 16:30:10 +0000
committerChristian Grothoff <christian@grothoff.org>2012-11-16 16:30:10 +0000
commit47c29f30a706c4d108e2884e2de1053c3b4e548a (patch)
tree1fa55b1b3cfe35c516b90b446c72188a7b8a7de2 /src/transport/gnunet-transport-wlan-receiver.c
parent915af2719420470cf09ba7bcd70cec8eeb76c7d6 (diff)
-fix
Diffstat (limited to 'src/transport/gnunet-transport-wlan-receiver.c')
-rw-r--r--src/transport/gnunet-transport-wlan-receiver.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/transport/gnunet-transport-wlan-receiver.c b/src/transport/gnunet-transport-wlan-receiver.c
index 73ca83ddc..ccc1d291f 100644
--- a/src/transport/gnunet-transport-wlan-receiver.c
+++ b/src/transport/gnunet-transport-wlan-receiver.c
@@ -78,9 +78,12 @@ main (int argc, char *argv[])
count = 0;
while (1)
{
- ret = read (commpipe[1], msg_buf, sizeof (msg_buf));
+ ret = read (commpipe[0], msg_buf, sizeof (msg_buf));
if (0 > ret)
+ {
+ fprintf (stderr, "read failed: %s\n", strerror (errno));
break;
+ }
count += ret;
akt = time (NULL);
if (akt - start > 30)