Code review comment for lp:~marcustomlinson/unity-scopes-api/debug_dbus_messages

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

> 91 + std::string started_message = "dbus-send --type=method_call
> --dest=com.ubuntu.SDKAppLaunch "
> 92 + "/ScopeRegistryCallback com.ubuntu.SDKAppLaunch.ScopeLoaded "
> 93 + "string:" + exec_data_.scope_id + " "
> 94 + "uint64:" + std::to_string(process_.pid());
> 95 + if (std::system(started_message.c_str()) != 0)
>
> I think dbus-send by default would block for up to 25 seconds waiting for
> reply if there is a problemwith receiver; is registry going to block for that
> long then?

The remote methods being called are void methods, no return values. I've tried dbus-send without the service running and it returns immediately. I then put a 20s sleep in the callback method on the python side, and the dbus-send still returns immediately. So looks like we're fine

« Back to merge proposal