diff options
| author | Paul Buetow <paul@buetow.org> | 2011-04-26 18:55:42 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2011-04-26 18:55:42 +0000 |
| commit | 67855afa02636e06b142c706487c5eb23efc5e8c (patch) | |
| tree | 8e357ebd18427cfc86453e0f7996d7fc88c4f96e /Xerl/Page/Configure.pm | |
| parent | 411f4c0227f280e1a412b825ad82b189017e6795 (diff) | |
added initial fcgi support to all the code files
Diffstat (limited to 'Xerl/Page/Configure.pm')
| -rw-r--r-- | Xerl/Page/Configure.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Xerl/Page/Configure.pm b/Xerl/Page/Configure.pm index 7396db9..9429f25 100644 --- a/Xerl/Page/Configure.pm +++ b/Xerl/Page/Configure.pm @@ -42,7 +42,10 @@ sub parse($) { my Xerl::Tools::FileIO $file = Xerl::Tools::FileIO->new( 'path' => $self->get_config() ); - $file->fslurp(); + if (-1 == $file->fslurp()) { + $self->set_shutdown(1); + return undef; + } my $re = qr/^(.+?) *=(.+?) *\n?$/; @@ -84,7 +87,8 @@ sub defaults($) { Xerl::Tools::FileIO->new( 'path' => $redirect ); $file->fslurp(); my $location = $file->shift(); - Xerl::Main::Global::REDIRECT($location); + Xerl::Main::Global::REDIRECT( $location ); + $self->set_shutdown(1); } my $alias = $self->get_hostroot() . 'alias:' . $self->get_host(); if ( -f $alias ) { |
