On 5/9/2007 12:01 AM, Jeff Pang wrote:
> 1) too less timeout setting in my.cnf? see /etc/my.cnf and look for this line:
I actually have no my.cnf. But if I s/my $pid = fork()/my $pid=1/ all
works fine, even with 60 second sleeps.
> 2) as we know,child exiting would return a SIGCHLD signal to parent,maybe this
> break the dbh connection?try to add these 2 lines in parent code:
>
> use POSIX qw(:signal_h WNOHANG);
> $SIG{CHLD}=sub {while((my $child=waitpid(-1,WNOHANG))>0){}};
Nope, same problem.
Thanks,
--
Jeremy Kister
http://jeremy.kister.net./
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/