perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aku Kauste <aku.kau...@gmail.com>
Subject Re: Threading inside a handler script
Date Sun, 04 Oct 2009 12:38:36 GMT
Thanks Liz,

Forks does exactly what I wanted to do.

-Aku

On Sat, Oct 3, 2009 at 8:54 PM, Elizabeth Mattijsen <liz@dijkmat.nl> wrote:
> On Oct 3, 2009, at 2:32 PM, Perrin Harkins wrote:
>>
>> On Fri, Oct 2, 2009 at 9:34 AM, Aku Kauste <aku.kauste@gmail.com> wrote:
>>>
>>> Well, obviously this doesn't work and I end up getting "child pid
>>> XXXXX exit signal Segmentation fault (11)" type errors.
>>>
>>> Is my aproach completely wrong? What would be the right way to solve
>>> this kind of a problem?
>>
>> I believe what you're doing should work, but I don't use threads for
>> anything.  I'd probably fork and put the results in a database table
>> or file.
>
> If you like the threads API, you might want to take a look at the "forks"
> module on CPAN.  It provides the threads API using fork(), and hence does
> not have many of the problems that native Perl ithreads have.
>
>
> Liz
>

Mime
View raw message