[systemd-devel] sd-bus: process ret_error from callback

Liam Beguin lvb at xiphos.com
Thu Jun 27 18:50:19 UTC 2019


Hi all, 

I'm trying to process the `sd_bus_error` set in a `sd_bus_message_handler_t` callback in my main loop but I can't seem to be able to do it properly...

Here is what I tried:
- In the callback I tried setting the error using `sd_bus_reply_method_error` and `sd_bus_error_set` 
- In the main loop, I tried accessing `reply` from `r = sd_bus_process(bus, &reply)` right after checking that `r > 0`.
- reply seems to always be null.

Is this the right way to do process the `sd_bus_error`?
Thanks, 

--
Liam Beguin


More information about the systemd-devel mailing list