]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print out when we get kevent with no data
authorAlan T. DeKok <aland@freeradius.org>
Wed, 7 Dec 2016 22:32:12 +0000 (17:32 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 7 Dec 2016 22:32:28 +0000 (17:32 -0500)
src/tests/util/channel_test.c

index db05f2a1ae57e4b743a3e29e6bc66612ac85f5cd..46b141a5fc89385c2b32ad2ae52a0cb039decf9f 100644 (file)
@@ -195,7 +195,10 @@ check_close:
                                MPRINT1("Master got data ready signal\n");
 
                                reply = fr_channel_recv_reply(channel);
-                               if (!reply) continue;
+                               if (!reply) {
+                                       MPRINT1("Master SIGNAL WITH NO DATA!\n");
+                                       continue;
+                               }
 
                                do {
                                        num_replies++;
@@ -340,7 +343,10 @@ static void *channel_worker(void *arg)
                                MPRINT1("\tWorker got data ready signal\n");
 
                                cd = fr_channel_recv_request(channel);
-                               if (!cd) continue;
+                               if (!cd) {
+                                       MPRINT1("\tWorker SIGNAL WITH NO DATA!\n");
+                                       continue;
+                               }
 
                                while (cd) {
                                        int message_id;