in reply to Re^3: Restart Forked Script
in thread Restart Forked Script

What I didn't publish is the following in my code: just after:
$kid = fork;
I am doing the following:
$dbh = DBI->connect("DBI:mysql:DatabaseName;host=127.0.0.1;mysql_serve +r_prepare=1",'root','pass',{AutoCommit=>1}) or die $DBI::errstr;
It works just fine for me using the fork emulation. Can you perhaps may be give me an example of using multiple Database handles and threading server with IO::Socket. Thanks a lot for your answers, you are really helping me.

Replies are listed 'Best First'.
Re^5: Restart Forked Script
by salva (Canon) on Feb 21, 2006 at 14:34 UTC
    why don't you tell us briedfly what your applications does?

    Killing a process that could be writting data to a database is not the finest idea.