Writing a startup module for modperl in Win32

Writing a startup module for modperl in Win32

am 09.02.2008 17:36:22 von Foo JH

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

: