| 1 | package PLS::Server::Request::Exit; | ||||||||||
| 2 | |||||||||||
| 3 | 13 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 13 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 13 | ▶ | use parent 'PLS::Server::Request'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 13 | ▶ | use PLS::Server::State; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | =head1 NAME | ||||||||||
| 11 | |||||||||||
| 12 | PLS::Server::Request::Exit | ||||||||||
| 13 | |||||||||||
| 14 | =head1 DESCRIPTION | ||||||||||
| 15 | |||||||||||
| 16 | This is a notification message from the client to the server requesting | ||||||||||
| 17 | that the server exits. | ||||||||||
| 18 | |||||||||||
| 19 | =cut | ||||||||||
| 20 | |||||||||||
| 21 | sub service | ||||||||||
| 22 | 2 | ▶ | { | ||||||||
|
Subroutine
service: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 23 | 2 | my ($self, $server) = @_; | |||||||||
| 24 | |||||||||||
| 25 | 2 | ▶ | my $exit_code = $PLS::Server::State::SHUTDOWN ? 0 : 1; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | 2 | $server->stop($exit_code); | |||||||||
| 27 | |||||||||||
| 28 | 2 | return; | |||||||||
| 29 | } ## end sub service | ||||||||||
| 30 | |||||||||||
| 31 | 13 | 1; | |||||||||