From: Michael Jeanson Date: Thu, 26 Jan 2017 19:36:45 +0000 (-0500) Subject: Fix: Lazily initialize max poll set size in poll compat X-Git-Tag: v2.9.4~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a295449d182c0c89c1c2b3ba2a18519b547f6486;p=lttng-tools.git Fix: Lazily initialize max poll set size in poll compat This was applied to the epoll implementation in commit 22dad56815ce0201c5ae7d5ef5d79cc0c6a42c5e Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/compat/compat-poll.c b/src/common/compat/compat-poll.c index cc280c764..7d4d0e133 100644 --- a/src/common/compat/compat-poll.c +++ b/src/common/compat/compat-poll.c @@ -111,8 +111,9 @@ int compat_poll_create(struct lttng_poll_event *events, int size) } 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 */