X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust-python-agent%2Flttngust%2Fagent.py;fp=liblttng-ust-python-agent%2Flttngust%2Fagent.py;h=84cfd838b70ee812d51fa16037b95805c1e5d672;hb=382cbd153bc0240b75d1bece7564c900599534b4;hp=8ec26cde0514283fe068895134c4ac2360686a90;hpb=99b7132dc75b5eb865f284fd1eca2bad77442187;p=lttng-ust.git diff --git a/liblttng-ust-python-agent/lttngust/agent.py b/liblttng-ust-python-agent/lttngust/agent.py index 8ec26cde..84cfd838 100644 --- a/liblttng-ust-python-agent/lttngust/agent.py +++ b/liblttng-ust-python-agent/lttngust/agent.py @@ -317,6 +317,12 @@ def _init_threads(): dbg._pdebug('system session daemon port: {}'.format(sys_port)) dbg._pdebug('user session daemon port: {}'.format(user_port)) + if sys_port == user_port and sys_port is not None: + # The two session daemon ports are the same. This is not normal. + # Connect to only one. + dbg._pdebug('both user and system session daemon have the same port') + sys_port = None + try: if sys_port is not None: dbg._pdebug('creating system client thread')