We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92e31da commit aae82d1Copy full SHA for aae82d1
src/initctl/initctl.c
@@ -233,12 +233,8 @@ static void server_done(Server *s) {
233
while (s->fifos)
234
fifo_free(s->fifos);
235
236
- safe_close(s->epoll_fd);
237
-
238
- if (s->bus) {
239
- sd_bus_flush(s->bus);
240
- sd_bus_unref(s->bus);
241
- }
+ s->epoll_fd = safe_close(s->epoll_fd);
+ s->bus = sd_bus_flush_close_unref(s->bus);
242
}
243
244
static int server_init(Server *s, unsigned n_sockets) {
0 commit comments