+ add some explanation

This commit is contained in:
garnier-quentin 2015-08-28 16:08:52 +02:00
parent 9dea1d8f08
commit c02e72eb71
1 changed files with 9 additions and 0 deletions

View File

@ -40,10 +40,19 @@ sub new {
$self->{plugin} = undef;
$self->{help} = undef;
# Avoid to destroy because it keeps a ref on the object.
# A problem if we execute it multiple times in the same perl execution
# Use prepare_destroy
$self->set_signal_handlers;
return $self;
}
sub prepare_destroy {
my $self = shift;
delete $handlers{DIE}->{$self};
}
sub set_signal_handlers {
my $self = shift;