1 package CXGN
::Apache
::Registry
;
5 use base
qw(ModPerl::RegistryPrefork);
8 # add a global $c variable to the top of every script for the context
10 my $cxgn_script_header = <<'EOC';
11 our $c = SGN::Context->instance;
15 return $cxgn_script_header.$self->SUPER::get_mark_line
(@_);
21 # keep site die handlers from interfering with proper 404 and 403
23 local $SIG{__DIE__
} = undef;
25 return $self->SUPER::read_script
(@_);
34 CXGN::Apache::Registry - slightly customized subclass of L<ModPerl::RegistryPrefork>
40 our $c = SGN::Context->instance
42 to the beginning of every script.
44 Localizes C<$SIG{__DIE__}> when reading script files from disk, to
45 enable proper 404 and 403 handling in the presence of custom
46 C<$SIG{__DIE__}> handlers.