The DB connection is shared between the processes. Hence, when the child closes the connection the parent will lose it too.
In general having two processes trying to use the same database handle will cause nasty things to happen.
The only solution is to not do it :-) You'll need to open a separate database handle for the child process.
In reply to Re: Access the same database in two processes
by adrianh
in thread Access the same database in two processes
by sachaer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |