Fix: thread_registration_apps should set its local sock to -1 when passing it
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 2 Mar 2012 20:45:11 +0000 (15:45 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 2 Mar 2012 20:45:11 +0000 (15:45 -0500)
.. to another thread.

Acked-by: David Goulet <dgoulet@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/bin/lttng-sessiond/main.c

index 5644cb82d9998b74f55e5a9c13a0ab77cb7d7dde..9e4bab468f1462308f6c5377a049847015824e1b 100644 (file)
@@ -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)",
This page took 0.026858 seconds and 4 git commands to generate.