Skip to content
Snippets Groups Projects
Commit a973bc6e authored by Daniel Salzman's avatar Daniel Salzman
Browse files

fixup! knotd: finaliza D-Bus events

parent b94976ad
No related branches found
No related tags found
No related merge requests found
Pipeline #93616 passed
......@@ -99,14 +99,14 @@ int systemd_dbus_open(void)
int ret = sd_bus_open_system(&_dbus);
if (ret < 0) {
return -ret;
return ret;
}
/* Take a well-known service name so that clients can find us. */
ret = sd_bus_request_name(_dbus, KNOT_DBUS_NAME, 0);
if (ret < 0) {
systemd_dbus_close();
return -ret;
return ret;
}
return KNOT_EOK;
......
......@@ -508,7 +508,7 @@ int main(int argc, char **argv)
if (conf()->cache.srv_dbus_event != DBUS_EVENT_NONE) {
ret = systemd_dbus_open();
if (ret != KNOT_EOK) {
log_warning("failed to open system dbus (%s)", knot_strerror(ret));
log_error("failed to open system dbus (%s)", knot_strerror(ret));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment