2009/12/21 Xiao Lan (小兰) <practicalp...@gmail.com>: > my $dbh = DBI->connect(...); > my $pid = fork; > if ($pid ) { # parent > do something; > } else { # child > do something another; > $dbh->disconnect; > } > > What I want to know is, when $dbh get disconnected in child, will it > influence the one in parent?
I'm by far not an adept on DBI forking, but maybe these links will give you some leeway on these matters: Fork-safe DBI handles via ChildHandles and InactiveDestroy: http://www.perlmonks.org/?node_id=619722 DBI, fork, and clone.: http://www.perlmonks.org/?node_id=594175 -- Erez "The government forgets that George Orwell's 1984 was a warning, and not a blueprint" http://www.nonviolent-conflict.org/ -- http://www.whyweprotest.org/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/