perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Foo JH <jhfoo...@extracktor.com>
Subject Writing a startup module for modperl in Win32
Date Sat, 09 Feb 2008 16:36:22 GMT
Hi all,

I've done some refactoring recently on my mp2 app (on Win32), and 
succeeded in resolving the annoying startup issue (basically, does not 
start up well).

I've documented my experience in the following url:
http://jhfoo.multiply.com/journal/item/163/Writing_a_startup_module_for_modperl_in_Win32_Part_1

But for those who just want to know what did the trick, I included a 
simple mechanism to prevent the crashing during file IO:

use Thread::Semaphore;

$MyLib::sem = Thread::Semaphore->new
    if (!defined($MyLib::sem));

$MyLib::sem->down;
# do stuff here
$MyLib::sem->up;


Hope this helps

:





Mime
View raw message