Eliminate debugging message in main loop.
authorJennifer Richards <jennifer@painless-security.com>
Wed, 18 May 2016 13:53:57 +0000 (09:53 -0400)
committerJennifer Richards <jennifer@painless-security.com>
Wed, 18 May 2016 13:53:57 +0000 (09:53 -0400)
tid/example/tids_main.c

index 29fa9b5..dd60f8e 100644 (file)
@@ -397,16 +397,15 @@ int main (int argc,
 
   /* main event loop */
   while (1) {
-    if(poll(poll_fds, 1, 1000) > 0) {
+    /* wait up to 100 ms for an event, then handle any idle work */
+    if(poll(poll_fds, 1, 100) > 0) {
       if (poll_fds[0].revents & POLLIN) {
         if (0 != tids_accept(tids, tids_socket)) {
           tr_err("Error handling tids request.");
         }
       }
-    } else {
-      printf("Idle..."); fflush(stdout);
     }
-
+    /* idle loop stuff here */
   }
 
   /* Clean-up the TID server instance */