From 34a2494f54d3dd06aa5ef49785cdd8606c404217 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 2 Mar 2012 15:45:11 -0500 Subject: [PATCH] Fix: thread_registration_apps should set its local sock to -1 when passing it .. to another thread. Acked-by: David Goulet Signed-off-by: Mathieu Desnoyers --- src/bin/lttng-sessiond/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 5644cb82d..9e4bab468 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -1431,6 +1431,7 @@ static void *thread_registration_apps(void *data) } ust_cmd->sock = sock; + sock = -1; DBG("UST registration received with pid:%d ppid:%d uid:%d" " gid:%d sock:%d name:%s (version %d.%d)", -- 2.34.1