tree-wide: make use of TAKE_FD() at two more places
This commit is contained in:
+1
-2
@@ -1035,9 +1035,8 @@ int bus_init_private(Manager *m) {
|
||||
|
||||
(void) sd_event_source_set_description(s, "bus-connection");
|
||||
|
||||
m->private_listen_fd = fd;
|
||||
m->private_listen_fd = TAKE_FD(fd);
|
||||
m->private_listen_event_source = s;
|
||||
fd = -1;
|
||||
|
||||
log_debug("Successfully created private D-Bus server.");
|
||||
|
||||
|
||||
+1
-2
@@ -978,8 +978,7 @@ static int manager_setup_cgroups_agent(Manager *m) {
|
||||
if (r < 0)
|
||||
return log_error_errno(errno, "bind(%s) failed: %m", sa.un.sun_path);
|
||||
|
||||
m->cgroups_agent_fd = fd;
|
||||
fd = -1;
|
||||
m->cgroups_agent_fd = TAKE_FD(fd);
|
||||
}
|
||||
|
||||
if (!m->cgroups_agent_event_source) {
|
||||
|
||||
Reference in New Issue
Block a user