forking() and updating database

forking() and updating database

am 04.05.2004 19:18:57 von Mayuran

If I am to fork() children and have them update the database,
should i give each child a different database handle? Currently,
the parent has a database handle (global var $Dbh) which the
child inherits from the fork(), each child then reconnects to
the database (i have a sub reconnectDB that each child calls
to re-establish a connection after the fork()). I wonder if this
causes problems.. since each child is using the same handler.

Mayuran

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org