Module: kamailio
Branch: master
Commit: 50557b8433e137a9095b4d48df8ac9b8c3fd8807
URL:
https://github.com/kamailio/kamailio/commit/50557b8433e137a9095b4d48df8ac9b…
Author: rodolfojcj <458749+rodolfojcj(a)users.noreply.github.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-06-07T15:11:27+02:00
app_perl change to ignore "die" signals from eval blocks
---
Modified: src/modules/app_perl/lib/perl/Kamailio.pm
---
Diff:
https://github.com/kamailio/kamailio/commit/50557b8433e137a9095b4d48df8ac9b…
Patch:
https://github.com/kamailio/kamailio/commit/50557b8433e137a9095b4d48df8ac9b…
---
diff --git a/src/modules/app_perl/lib/perl/Kamailio.pm
b/src/modules/app_perl/lib/perl/Kamailio.pm
index eda5ede8b7..aa587424e1 100644
--- a/src/modules/app_perl/lib/perl/Kamailio.pm
+++ b/src/modules/app_perl/lib/perl/Kamailio.pm
@@ -40,6 +40,7 @@ bootstrap Kamailio;
BEGIN {
$SIG{'__DIE__'} = sub {
+ die @_ if( $^S or not defined $^S );
Kamailio::Message::log(undef, L_ERR, "perl error: $_[0]\n");
};
$SIG{'__WARN__'} = sub {