perldragon80 has asked for the wisdom of the Perl Monks concerning the following question:
1)DBI handle 0x8315140 cleared whilst still active
2)dbih_clearcom (drh 0x8315140, com 0x883e370, imp DBD::mysql::dr)
3)FLAGS 0x100215: COMSET Active Warn PrintWarn AutoCommit
4)PARENT undef
5)KIDS 0 (0 Active)
6)IMP_DATA undef
That is just for areas that deal with DB interaction. I also see errors when I attempt to open a filehandle:
(Apache log shows in order)
1)cat, 2)write error, 3)broken pipe
##############################################
my $pid = open(CLI, "$ENV{HOME}/bin/cli all -D |") or die "couldn't fork: $!\n";
while(<CLI>) {
if ($_ =~ /\w+.*/) {
$output .= $_;
} else {
#do nothing
}
}
close(CLI);
###################################################
If I don't use forks.pm and switch to threads this doesn't happen, any ideas?
Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: forks.pm, CGI::App,TT and DBD::mysql
by gellyfish (Monsignor) on Jul 30, 2004 at 10:50 UTC | |
by perldragon80 (Sexton) on Jul 30, 2004 at 23:34 UTC | |
by BrowserUk (Patriarch) on Jul 30, 2004 at 23:54 UTC | |
by perldragon80 (Sexton) on Jul 31, 2004 at 04:06 UTC | |
by BrowserUk (Patriarch) on Jul 31, 2004 at 05:06 UTC |