Lazily initialize max poll set size
[lttng-tools.git] / src / common / compat / compat-epoll.c
index 6259fd3895e46b9b27826944c1b7574b72b72ff3..9c2688d33e09c3c774b914b366226424504324e7 100644 (file)
@@ -76,8 +76,9 @@ int compat_epoll_create(struct lttng_poll_event *events, int size, int flags)
        }
 
        if (!poll_max_size) {
-               ERR("poll_max_size not initialized yet");
-               goto error;
+               if (lttng_poll_set_max_size()) {
+                       goto error;
+               }
        }
 
        /* Don't bust the limit here */
This page took 0.024097 seconds and 4 git commands to generate.