X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fmain.c;h=efaaf4ffa99f40c5cc0dac877e796a7eda86e5ea;hb=3cc048812bf25b42003b40b6b868b9366faefafb;hp=c3f8ab3bdbc7dfb8aff2c5eca9b146276c6ac22d;hpb=36134aa184c8ed8f67a197d66d1310425abbf1ce;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index c3f8ab3bd..efaaf4ffa 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -3097,6 +3097,10 @@ static void *thread_manage_health(void *data) rcu_register_thread(); + /* We might hit an error path before this is set once. */ + memset(&events, 0, sizeof(events)); + events.epfd = -1; + /* Create unix socket */ sock = lttcomm_create_unix_sock(health_unix_sock_path); if (sock < 0) {