Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Python agent (double thread, same sessiond) + Python example #12

Closed
wants to merge 2 commits into from

Commits on Sep 5, 2015

  1. 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 <eeppeliteloop@gmail.com>
    eepp committed Sep 5, 2015
    Configuration menu
    Copy the full SHA
    99028e9 View commit details
    Browse the repository at this point in the history
  2. doc: add Python example

    Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
    eepp committed Sep 5, 2015
    Configuration menu
    Copy the full SHA
    0743288 View commit details
    Browse the repository at this point in the history