core/service: drop unneeded unit_add_to_gc_queue()
Follow-up fora1d315730fand6ac62d61dbWith the aforementioned commits, unit_release_resources() is dispatched in a dedicated queue, and Service.n_keep_fd_store has been dropped, hence the comment is outdated. Moreover, the unit is added to GC queue in unit_notify() already. No other unit types do this in corresponding _enter_dead() functions, nor does Service need it anymore.
This commit is contained in:
@@ -2152,10 +2152,6 @@ static void service_enter_dead(Service *s, ServiceResult f, bool allow_restart)
|
||||
(void) unit_set_debug_invocation(UNIT(s), false);
|
||||
}
|
||||
|
||||
/* The new state is in effect, let's decrease the fd store ref counter again. Let's also re-add us to the GC
|
||||
* queue, so that the fd store is possibly gc'ed again */
|
||||
unit_add_to_gc_queue(UNIT(s));
|
||||
|
||||
/* The next restart might not be a manual stop, hence reset the flag indicating manual stops */
|
||||
s->forbid_restart = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user