• Dominik Charousset's avatar
    Do not detach middleman actor, stop scheduler last · a4df55f6
    Dominik Charousset authored
    Detaching `middleman_actor_impl` made little sense to begin with. Since the
    actor is hidden, there is also the risk of running into a "heap-use-after-free"
    bug when detaching it (shutdown has no way to detect whether hidden actors are
    still alive before disposing all singletons). Stopping the scheduler *after*
    all plugins (e.g. middleman) and the group module makes sure that hidden actors
    are allowed to run their cleanup code.
    a4df55f6
singletons.cpp 4.64 KB