Skip to content

Commit

Permalink
Latest VWF error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 20, 2024
1 parent 829fed9 commit 44f8bbc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cgi-bin/page.fcgi
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,13 @@ $SIG{TERM} = \&sig_handler;
$SIG{PIPE} = 'IGNORE';
$ENV{'PATH'} = '/usr/local/bin:/bin:/usr/bin'; # For insecurity

$SIG{__WARN__} = sub { Log::WarnDie->dispatcher(undef); die @_ };
$SIG{__WARN__} = sub {
if(open(my $fout, '>>', File::Spec->catfile($tmpdir, "$script_name.stderr"))) {
print $fout @_;
}
Log::WarnDie->dispatcher(undef);
CORE::die @_
};

my $request = FCGI::Request();

Expand Down

0 comments on commit 44f8bbc

Please sign in to comment.