I made the following programs in Perl before:
my $db = DBconnection with DB2
if ($pid = fork()) {
#parent
} else {
#child
$db->execute("SELECT ****");
exit;
}
wait();
$db->execute("SELECT ****");
I thought that it waited for the end of the child process to have wanted to do it and would operate it for DB by a pro-process.
In addition, DB is not connected to the contents of the error.
What's wrong?