[mythtv-commits] Ticket #4514: mythweb.pl only loads handler.pl once when using mod_perl

MythTV mythtv at cvs.mythtv.org
Tue Jan 22 02:39:23 UTC 2008


#4514: mythweb.pl only loads handler.pl once when using mod_perl
---------------------------+------------------------------------------------
 Reporter:  sub at trias.org  |       Owner:  xris   
     Type:  patch          |      Status:  new    
 Priority:  minor          |   Milestone:  unknown
Component:  mythweb        |     Version:  unknown
 Severity:  low            |     Mlocked:  0      
---------------------------+------------------------------------------------
 Because mod_perl reuses the same perl interpreter at times, the line

 require "modules/$Path[0]/handler.pl";

 only loads handler.pl once (the first time the code is reached), instead
 of every time the code is processes. As a result, calls after the first
 one yield nothing.

 In addition, calling CORE::exit in handler.pl causes Apache to return an
 error. I recommend using a "goto" instead.

 I'm attaching some recommended changes against Revision 15494.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4514>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list