[Olsr-dev] [PATCH v1 076/115] info: write_data: add a comment

Ferry Huberts (spam-protected)
Wed Dec 2 21:28:49 CET 2015


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/info/olsrd_info.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/info/olsrd_info.c b/lib/info/olsrd_info.c
index f102d94..eea370a 100644
--- a/lib/info/olsrd_info.c
+++ b/lib/info/olsrd_info.c
@@ -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;
   }
 
-- 
2.5.0




More information about the Olsr-dev mailing list