perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Chamas <jos...@chamas.com>
Subject Re: Problem with asp module and apache on win98
Date Tue, 27 Nov 2001 09:52:59 GMT
Giorgio D'Anna wrote:
> 
> before I got another error too:
> "flock() unimplemented on this platform at /apache/lib/perl/
> MLDBM/Sync.pm line xxx"
> but I commented out some lines in sync.pm and so I fixed that.
> Anyway, since I have read on the documentation that it is possible to
> "disable use of flock() on Win95/98 where it is unimplemented"
> I'd want to know how I can do this (instead of commenting out).
> 

Install a fresh MLDBM::Sync, and then add this to your
httpd.conf file:

<Perl>
*CORE::GLOBAL::flock = sub { 1 };
</Perl>

This is to define a flock to effectively nothing, which will be
fine on win98 for now since mod_perl is serialized on this platform.
I believe this will only work with perl 5.6, but when working things 
out with someone else recently, this seems to do the trick.

If you plan any network communications on win32 apache/mod_perl
via perl I would also recommend that you set MaxThreadsPerChild to 1
which will get rid of odd socket problems.

--Josh
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Mime
View raw message