From: Philippe Proulx Date: Sat, 5 Sep 2015 17:38:01 +0000 (-0400) Subject: Fix: Python agent: do not register twice to same port X-Git-Tag: v2.8.0-rc1~79 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=382cbd153bc0240b75d1bece7564c900599534b4;hp=382cbd153bc0240b75d1bece7564c900599534b4;p=lttng-ust.git Fix: Python agent: do not register twice to same port It is possible that one of the session daemons left its agent.port file on the file system, for example when killed with SIGKILL. It is also common that both those session daemons use the same port for listening to agent connections. In this case, if one session daemon is running, but two agent.port files exist, the Python agent would connect its two threads to the same session daemon, leading to everything done twice: list shows events twice, tracing records events twice, etc. This patch ensures that if two agent.port files are found and have the same content, only one thread is used. Signed-off-by: Philippe Proulx Signed-off-by: Mathieu Desnoyers ---