Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.69.17.168
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
Dpkg /
[ HOME SHELL ]
Name
Size
Permission
Action
Build
[ DIR ]
drwxr-xr-x
Changelog
[ DIR ]
drwxr-xr-x
Compression
[ DIR ]
drwxr-xr-x
Control
[ DIR ]
drwxr-xr-x
Deps
[ DIR ]
drwxr-xr-x
Dist
[ DIR ]
drwxr-xr-x
Interface
[ DIR ]
drwxr-xr-x
Shlibs
[ DIR ]
drwxr-xr-x
Source
[ DIR ]
drwxr-xr-x
Vendor
[ DIR ]
drwxr-xr-x
Arch.pm
14.79
KB
-rw-r--r--
BuildFlags.pm
11.67
KB
-rw-r--r--
BuildOptions.pm
6.18
KB
-rw-r--r--
BuildProfiles.pm
3.88
KB
-rw-r--r--
Changelog.pm
20.19
KB
-rw-r--r--
Checksums.pm
10.97
KB
-rw-r--r--
Compression.pm
6.24
KB
-rw-r--r--
Conf.pm
5.78
KB
-rw-r--r--
Control.pm
7.19
KB
-rw-r--r--
Deps.pm
14.55
KB
-rw-r--r--
ErrorHandling.pm
5.17
KB
-rw-r--r--
Exit.pm
2.43
KB
-rw-r--r--
File.pm
1.25
KB
-rw-r--r--
Getopt.pm
1.21
KB
-rw-r--r--
Gettext.pm
5.64
KB
-rw-r--r--
IPC.pm
11.62
KB
-rw-r--r--
Index.pm
11.31
KB
-rw-r--r--
Lock.pm
1.87
KB
-rw-r--r--
OpenPGP.pm
4.86
KB
-rw-r--r--
Package.pm
1.26
KB
-rw-r--r--
Path.pm
8.6
KB
-rw-r--r--
Shlibs.pm
5.02
KB
-rw-r--r--
Substvars.pm
11.22
KB
-rw-r--r--
Vars.pm
1.42
KB
-rw-r--r--
Vendor.pm
5.34
KB
-rw-r--r--
Version.pm
12.76
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Exit.pm
# Copyright © 2002 Adam Heath <doogie@debian.org> # Copyright © 2012-2013 Guillem Jover <guillem@debian.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. package Dpkg::Exit; use strict; use warnings; our $VERSION = '2.00'; our @EXPORT_OK = qw( push_exit_handler pop_exit_handler run_exit_handlers ); use Exporter qw(import); my @handlers = (); =encoding utf8 =head1 NAME Dpkg::Exit - program exit handlers =head1 DESCRIPTION The Dpkg::Exit module provides support functions to run handlers on exit. =head1 FUNCTIONS =over 4 =item push_exit_handler($func) Register a code reference into the exit function handlers stack. =cut sub push_exit_handler { my ($func) = shift; _setup_exit_handlers() if @handlers == 0; push @handlers, $func; } =item pop_exit_handler() Pop the last registered exit handler from the handlers stack. =cut sub pop_exit_handler { _reset_exit_handlers() if @handlers == 1; pop @handlers; } =item run_exit_handlers() Run the registered exit handlers. =cut sub run_exit_handlers { while (my $handler = pop @handlers) { $handler->(); } _reset_exit_handlers(); } sub _exit_handler { run_exit_handlers(); exit(127); } my @SIGNAMES = qw(INT HUP QUIT); my %SIGOLD; sub _setup_exit_handlers { foreach my $signame (@SIGNAMES) { $SIGOLD{$signame} = $SIG{$signame}; $SIG{$signame} = \&_exit_handler; } } sub _reset_exit_handlers { foreach my $signame (@SIGNAMES) { $SIG{$signame} = $SIGOLD{$signame}; } } END { local $?; run_exit_handlers(); } =back =head1 CHANGES =head2 Version 2.00 (dpkg 1.20.0) Hide variable: @handlers. =head2 Version 1.01 (dpkg 1.17.2) New functions: push_exit_handler(), pop_exit_handler(), run_exit_handlers() Deprecated variable: @handlers =head2 Version 1.00 (dpkg 1.15.6) Mark the module as public. =cut 1;
Close