Skip to contentSkip to conversation

Fix: Lazily initialize max poll set size in poll compat

PATCH Jérémie Galarneau 1 participant 1 message Jan 31, 2017 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Merged in master, stable-2.9 and stable-2.8.

Thanks!
Jérémie

Quoted 27 lines · Michael Jeanson

This was applied to the epoll implementation in commit 22dad56815ce0201c5ae7d5ef5d79cc0c6a42c5e

---
 src/common/compat/compat-poll.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
src/common/compat/compat-poll.c +3 -3
index cc280c7..7d4d0e1 100644
@@ -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 */
--

2.7.4

Signature · 7 lines
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev