From: Mathieu Desnoyers Date: Fri, 2 Mar 2012 20:45:11 +0000 (-0500) Subject: Fix: thread_registration_apps should set its local sock to -1 when passing it X-Git-Tag: v2.0.0-rc2~6 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=34a2494f54d3dd06aa5ef49785cdd8606c404217;ds=sidebyside 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 --- 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)",