[sr-dev] git:master:50557b84: app_perl change to ignore "die" signals from eval blocks

Daniel-Constantin Mierla miconda at gmail.com
Mon Jun 7 15:11:31 CEST 2021


Module: kamailio
Branch: master
Commit: 50557b8433e137a9095b4d48df8ac9b8c3fd8807
URL: https://github.com/kamailio/kamailio/commit/50557b8433e137a9095b4d48df8ac9b8c3fd8807

Author: rodolfojcj <458749+rodolfojcj at users.noreply.github.com>
Committer: Daniel-Constantin Mierla <miconda at 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/50557b8433e137a9095b4d48df8ac9b8c3fd8807.diff
Patch: https://github.com/kamailio/kamailio/commit/50557b8433e137a9095b4d48df8ac9b8c3fd8807.patch

---

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 {




More information about the sr-dev mailing list