Waynn Lue wrote:
>>
>> Yeah, that's what I ended up doing, and defining some global
>> variables so that I could re-use the previous functions I created,
>> thanks for the help!
>>
>> One other question I had, is pcntl_waitpid necessary in this case?
>> Passing WNOHANG to it causes it to return i
>
> Yeah, that's what I ended up doing, and defining some global variables so
> that I could re-use the previous functions I created, thanks for the help!
>
> One other question I had, is pcntl_waitpid necessary in this case? Passing
> WNOHANG to it causes it to return immediately regardless of wh
>
> > Whoops, I spoke too soon, I think the sleep(3) causes the child not to
> > exit before the parent. If instead I don't pass WNOHANG to the
> > waitpid command, it does error out. So it looks like your theory is
> > correct, and I still have that problem. I guess the only solution is
> > to
Waynn Lue wrote:
> Whoops, I spoke too soon, I think the sleep(3) causes the child not to
> exit before the parent. If instead I don't pass WNOHANG to the
> waitpid command, it does error out. So it looks like your theory is
> correct, and I still have that problem. I guess the only solution is
>
> > Yeah, something like that. The connection is definitely closed when the
>> > child exits.
>> >
>>
>> I can confirm this. you definitely need to open a connection for each
>> child process.
>> if you require a db connection in the parent process, you should close
>> it before forking (and then
>
> > Yeah, something like that. The connection is definitely closed when the
> > child exits.
> >
>
> I can confirm this. you definitely need to open a connection for each child
> process.
> if you require a db connection in the parent process, you should close
> it before forking (and then reopen
Per Jessen schreef:
> Jochem Maas wrote:
>
>> Per Jessen schreef:
>>> Waynn Lue wrote:
>>>
(Apologies for topposting, I'm on my blackberry). Hm, so you think
exiting from the child thread causes the db resource to get
reclaimed?
>>> Yeah, something like that. The connection is
Jochem Maas wrote:
> Per Jessen schreef:
>> Waynn Lue wrote:
>>
>>> (Apologies for topposting, I'm on my blackberry). Hm, so you think
>>> exiting from the child thread causes the db resource to get
>>> reclaimed?
>>>
>>
>> Yeah, something like that. The connection is definitely closed when
>> t
On Tue, 2009-03-17 at 17:06 -0400, George Larson wrote:
> If "Fork and Zombies" was a diner... I would totally eat there.
For fork sake... ;)
Ash
www.ashleysheridan.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If "Fork and Zombies" was a diner... I would totally eat there.
On Tue, Mar 17, 2009 at 5:00 PM, Jochem Maas wrote:
> Per Jessen schreef:
> > Waynn Lue wrote:
> >
> >> (Apologies for topposting, I'm on my blackberry). Hm, so you think
> >> exiting from the child thread causes the db resource to
Per Jessen schreef:
> Waynn Lue wrote:
>
>> (Apologies for topposting, I'm on my blackberry). Hm, so you think
>> exiting from the child thread causes the db resource to get reclaimed?
>>
>
> Yeah, something like that. The connection is definitely closed when the
> child exits.
>
I can confirm
Waynn Lue wrote:
> (Apologies for topposting, I'm on my blackberry). Hm, so you think
> exiting from the child thread causes the db resource to get reclaimed?
>
Yeah, something like that. The connection is definitely closed when the
child exits.
/Per
--
Per Jessen, Zürich (8.9°C)
--
PHP Ge
12 matches
Mail list logo