Created
November 1, 2023 23:05
-
-
Save exodist/6308382122aad65bb74131cc3379ef01 to your computer and use it in GitHub Desktop.
Use of uninitialized value $exit in exit at (file) line (20)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub process_and_exit { | |
my $self = shift; | |
my ($child_pid) = @_; | |
my $guard = Scope::Guard->new(sub { | |
eval { $self->_die("Scope Leak inside collector") }; | |
exit(255); | |
}); | |
my $exit = 0; | |
unless (eval { $exit = $self->process($child_pid); 1 }) { | |
my $err = $@; | |
eval { $self->_die($err) } or $self->_warn($@); | |
$exit = 255; | |
} | |
eval { $guard->dismiss() }; | |
exit($exit); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment