CLI script shutdown helper class.
More...
|
static bool | $cligracefulexit = false |
| Should we exit gracefully at the next opportunity?
|
|
CLI script shutdown helper class.
- Copyright
- 2019 Brendan Heywood brend.nosp@m.an@c.nosp@m.ataly.nosp@m.st-a.nosp@m.u.net
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ script_supports_graceful_exit()
static core\local\cli\shutdown::script_supports_graceful_exit |
( |
| ) |
|
|
static |
Declares that this CLI script can gracefully handle signals.
- Return values
-
◆ should_gracefully_exit()
static core\local\cli\shutdown::should_gracefully_exit |
( |
| ) |
|
|
static |
Should we gracefully exit?
- Return values
-
bool | true if we should gracefully exit |
◆ signal_handler()
static core\local\cli\shutdown::signal_handler |
( |
int |
$signo | ) |
|
|
static |
Handle the signal.
The first signal flags a graceful exit. If a second signal is received then it immediately exits.
- Parameters
-
int | $signo | The signal number |
- Return values
-
bool | true if we should exit |
The documentation for this class was generated from the following file: