in reply to Problem with module for forked processes

There's a problem with DBI where if both a parent and forked child use the DB the DBH for the parent can be invalidated when the child exits.

The above quote is the only place where I can see DBI in your post. The code runs ok, no segfaults, but the real DB work is replaced with sleep() calls afaikt. Maybe you post your actual code and some version information (perl, DBI etc) to help us help you.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
  • Comment on Re: Problem with module for forked processes

Replies are listed 'Best First'.
Re^2: Problem with module for forked processes
by brass (Initiate) on Nov 03, 2015 at 18:51 UTC
    I'm trying to make a module that will help me work around the issues with the DBI. My problem is that when I try to run my test script (which doesn't actually do any DB work although I have another one that does) it seg faults at some point when the parent process calls/is in ReceiveMessage. This is the actual code that I am trying to run as a PoC for what I need to do. I'm using Perl 5.10.1