broker/manager: move code
No functional change, just select the signals file next to where it is initialized.
@@ -146,6 +146,8 @@ int manager_new(Manager **managerp, int controller_fd) {
if (r)
return error_fold(r);
+ dispatch_file_select(&manager->signals_file, EPOLLIN);
+
r = user_registry_ref_entry(&manager->bus->users, &user, ucred.uid);
if (r)
return error_fold(r);
@@ -159,8 +161,6 @@ int manager_new(Manager **managerp, int controller_fd) {
if (r)
return error_fold(r);
- dispatch_file_select(&manager->signals_file, EPOLLIN);
-
*managerp = manager;
manager = NULL;
return 0;
