Class SetTerminator

Class Documentation

class SetTerminator

Set handler for termination requests. terminator will be called following receipt of SIGTERM or SIGINT. The default terminator stop()s the server, replacements should probably do the same in addition to any additional shutdown logic.

Public Types

using Terminator = std::function<void(int signal)>

Public Functions

explicit SetTerminator(Terminator const &terminator)
~SetTerminator()
void operator()(mir::Server &server) const