After forking, what is the suggested method to reestablish a
connection in the child process without affecting the parent
connection?

Perl DBI has the InactiveDestroy flag to handle this case (http://
search.cpan.org/~timb/DBI-1.616/DBI.pm#InactiveDestroy). Is there
anything like this for DataMapper?

If necessary I can close the connection in the parent before forking
and then reconnect in both processes, but it seems like there should a
better way to handle this.

Thanks,
-psanford

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to