[Jifty-commit] r3113 - in jifty/trunk: lib/Jifty/Server
lib/Jifty/Server/Prefork
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sun Apr 8 15:17:54 EDT 2007
Author: trs
Date: Sun Apr 8 15:17:53 2007
New Revision: 3113
Modified:
jifty/trunk/ (props changed)
jifty/trunk/Makefile.PL
jifty/trunk/lib/Jifty/Server/Prefork.pm
jifty/trunk/lib/Jifty/Server/Prefork/NetServer.pm
Log:
r20646 at zot: tom | 2007-04-08 15:17:04 -0400
Add doc and prefork dependency so the doc and dep tests pass
Modified: jifty/trunk/Makefile.PL
==============================================================================
--- jifty/trunk/Makefile.PL (original)
+++ jifty/trunk/Makefile.PL Sun Apr 8 15:17:53 2007
@@ -113,6 +113,10 @@
-default => 0,
recommends('Net::Server::Fork'),
],
+ 'Pre-forking jifty server' => [
+ -default => 0,
+ recommends('Net::Server::PreFork'),
+ ],
'Apache2/ModPerl2 handler' => [
-default => 0,
recommends('Apache2::Const'),
Modified: jifty/trunk/lib/Jifty/Server/Prefork.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Server/Prefork.pm (original)
+++ jifty/trunk/lib/Jifty/Server/Prefork.pm Sun Apr 8 15:17:53 2007
@@ -1,5 +1,5 @@
package Jifty::Server::Prefork;
-use Net::Server::Prefork ();
+use Net::Server::PreFork ();
use base 'Jifty::Server';
=head1 NAME
Modified: jifty/trunk/lib/Jifty/Server/Prefork/NetServer.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Server/Prefork/NetServer.pm (original)
+++ jifty/trunk/lib/Jifty/Server/Prefork/NetServer.pm Sun Apr 8 15:17:53 2007
@@ -1,8 +1,19 @@
-
package Jifty::Server::Prefork::NetServer;
use base 'Net::Server::PreFork';
+=head1 NAME
+
+Jifty::Server::Prefork::NetServer - Sets up children for Jifty::Server::Prefork
+
+=head1 METHODS
+
+=head2 child_init_hook
+
+Sets up the database connection when spawning a new child
+
+=cut
+
sub child_init_hook {
Jifty->setup_database_connection();
}
More information about the Jifty-commit
mailing list