CLI: If an error happens on the socket being polled, then the CLI
[vpp.git] / vlib / vlib / unix / input.c
index ea10e4f..f9d7fec 100644 (file)
@@ -195,6 +195,8 @@ linux_epoll_input (vlib_main_t * vm,
               errors[n_errors] = f->error_function (f);
               n_errors += errors[n_errors] != 0;
             }
+         else
+            close(f->file_descriptor);
        }
 
       ASSERT (n_errors < ARRAY_LEN (errors));