1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 22:28:47 -04:00

avoid resource collisions (segfaulted under cygwin)

This commit is contained in:
Kenichi Ishigaki 2010-11-02 21:03:14 +00:00
parent 389337381d
commit 3ab8e9d709

View file

@ -79,6 +79,12 @@ foreach my $call_func (@CALL_FUNCS) {
skip("No fork here", 1);
} elsif (!$pid) {
# child
# avoid resource collisions after fork
# http://www.slideshare.net/kazuho/un-5457977
$dbh->{InactiveDestroy} = 1;
undef $dbh;
my $dbh2 = DBI->connect("dbi:SQLite:$dbfile", '', '',
{
RaiseError => 1,