Help for this page

Select Code to Download


  1. or download this
    sub MakeAllDBHsForkSafe {
        my %drivers = DBI->installed_drivers;
        foreach my $drh (values %drivers) {
            map { $_->{InactiveDestroy} = 1 } @{$drh->{ChildHandles}};
        }
    }
    
  2. or download this
    sub MakeAllDBHsForkSafe {
        my %drivers = DBI->installed_drivers;
        foreach my $drh (values %drivers) {
            map { $_->{InactiveDestroy} = 1 } @{$_->{ChildHandles}};
        }
    }
    
  3. or download this
    sub MakeAllDBHsForkSafe {
        my %drivers = DBI->installed_drivers;
        foreach my $drh (values %drivers) {
          $_->{InactiveDestroy} = 1 for (grep {defined} @{$drh->{ChildHand
    +les}});
        }
    }