Re: Threading inside a handler script

2009-10-04 Thread Aku Kauste
Thanks Liz, Forks does exactly what I wanted to do. -Aku On Sat, Oct 3, 2009 at 8:54 PM, Elizabeth Mattijsen wrote: > On Oct 3, 2009, at 2:32 PM, Perrin Harkins wrote: >> >> On Fri, Oct 2, 2009 at 9:34 AM, Aku Kauste wrote: >>> >>> Well, obviously this doesn't work and I end up getting "child

Re: Threading inside a handler script

2009-10-03 Thread Torsten Foertsch
On Sat 03 Oct 2009, Elizabeth Mattijsen wrote: > > 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 C

Re: Threading inside a handler script

2009-10-03 Thread Elizabeth Mattijsen
On Oct 3, 2009, at 2:32 PM, Perrin Harkins wrote: On Fri, Oct 2, 2009 at 9:34 AM, Aku Kauste wrote: Well, obviously this doesn't work and I end up getting "child pid X exit signal Segmentation fault (11)" type errors. Is my aproach completely wrong? What would be the right way to solve th

Re: Threading inside a handler script

2009-10-03 Thread Perrin Harkins
On Fri, Oct 2, 2009 at 9:34 AM, Aku Kauste wrote: > Well, obviously this doesn't work and I end up getting "child pid > X 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

Threading inside a handler script

2009-10-02 Thread Aku Kauste
Hello, The problem I'm trying to solve is that a page request will have to look for data from two sources: local & external. What I would like to do is put the external lookup (which is slow) in it's own thread and do the local processing as far as I can while waiting for the external source. Then