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.
More...
#include <set_terminator.h>
|
using | Terminator = std::function< void(int signal)> |
|
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.
◆ Terminator
◆ SetTerminator()
miral::SetTerminator::SetTerminator |
( |
Terminator const & |
terminator | ) |
|
|
explicit |
◆ ~SetTerminator()
miral::SetTerminator::~SetTerminator |
( |
| ) |
|
◆ operator()()
void miral::SetTerminator::operator() |
( |
mir::Server & |
server | ) |
const |
The documentation for this class was generated from the following file:
Copyright © 2012-2020
Canonical Ltd.
Generated on Mon Jun 29 21:51:46 UTC 2020
This documentation is licensed under the GPL version 2 or 3.