info: write_data: add a comment
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 2 Dec 2015 11:59:58 +0000 (12:59 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 2 Dec 2015 19:54:17 +0000 (20:54 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/info/olsrd_info.c

index f102d94..eea370a 100644 (file)
@@ -176,6 +176,7 @@ static void write_data(void *foo __attribute__ ((unused))) {
 
   result = select(max + 1, NULL, &set, NULL, &tv);
   if (result <= 0) {
+    /* exit early if any of the sockets is not ready for writing */
     return;
   }