|
R-Type
Networked shoot'em up built on Aegis2D
|
Stopping r-type_server with Ctrl+C (SIGINT) or SIGTERM.
More...
Go to the source code of this file.
Namespaces | |
| namespace | rtype |
| R-Type game code, built on the Aegis2D engine. | |
Functions | |
| bool | rtype::install_stop_handlers () |
Handles SIGINT and SIGTERM: the first one asks the server to stop cleanly (stop_requested() becomes true), a second one ends the process at once with forced_exit_status. | |
| bool | rtype::stop_requested () noexcept |
| Tells whether a stop was asked by a signal. Thread-safe. | |
| void | rtype::request_stop () noexcept |
Asks the server to stop, as a first Ctrl+C does: stop_requested() becomes true. | |
Variables | |
| constexpr int | rtype::forced_exit_status = 130 |
| Exit status of a server stopped by a second signal, before its clean stop ended. | |
Stopping r-type_server with Ctrl+C (SIGINT) or SIGTERM.