Skip to content

Commit

Permalink
Reverted dispatchers object path to again use pid, not tid
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhaefner committed Jun 22, 2024
1 parent 0ae5dff commit 0d21e85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ void Dispatcher::init(int have_introspection, const char* busname)
dbus_error_init(&err);
std::ostringstream match_string;
match_string
<< "type='signal',interface='org.simppl.dispatcher',member='notify_client',path='/org/simppl/dispatcher/" << ::gettid() << '/' << this << "'";
<< "type='signal',interface='org.simppl.dispatcher',member='notify_client',path='/org/simppl/dispatcher/" << ::getpid() << '/' << this << "'";

dbus_bus_add_match(conn_, match_string.str().c_str(), &err);
if (dbus_error_is_set(&err))
Expand Down Expand Up @@ -498,7 +498,7 @@ Dispatcher::~Dispatcher()
void Dispatcher::notify_connected(StubBase& stub)
{
std::ostringstream objpath;
objpath << "/org/simppl/dispatcher/" << ::gettid() << '/' << this;
objpath << "/org/simppl/dispatcher/" << ::getpid() << '/' << this;

DBusMessage* msg = dbus_message_new_signal(objpath.str().c_str(), "org.simppl.dispatcher", "notify_client");

Expand Down

0 comments on commit 0d21e85

Please sign in to comment.