| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
See `man "sd_bus_message_read_basic(3)"`
|
You are correct. The only issue I see that there is no error checking if fnctl call has succeeded. |
Sorry, something went wrong.
Good point. So, technically, it would make sense to wrap the fnctl call in CALL_SD_BUS_AND_CHECK, but it does feel a bit wrong because of the _SD_BUS_ in its name. Copying the content of the macro doesn't seem nice either, though. Maybe we could rename the macro to a more generic CALL_AND_CHECK? |
Sorry, something went wrong.
|
It can be renamed later. I already use that macro on functions not part of libsystemd: python-sdbus/src/sdbus/sd_bus_internals_bus.c Line 648 in f2b4865 |
Sorry, something went wrong.
|
I've added the check now. |
Sorry, something went wrong.
|
Thank you! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
When a DBus method returns a file handler (h), the handler must be duplicated before the message is freed, otherwise the file will be closed before the Python client can do anything with it.
See man "sd_bus_message_read_basic(3)".