Re: DBD::Sybase 1.04 and Fork core

From: Michael Peppler (mpeppler_at_peppler.org)
Date: 09/11/04


To: dbi-users@perl.org
Date: Sat, 11 Sep 2004 08:26:18 +0200

Mike Abrams wrote:
> Hi,
> I have been getting core dumps when I try to use DBD::Sybase
> v1.04 while forking. The problem seems to be when I try to catch
> SIGCHLD. This exact same strategy was used with V1.02 without
> problems.

> use strict;
> use POSIX qw(:sys_wait_h);
> use DBI;
>
>
> $SIG{CHLD} = &\REAPER;

Typo?

Should be $SIG{CHLD} = \&REAPER;

With that fix I was able to run your sample code with no problems with
1.04.6, perl 5.8.3 on a Fedora Core 1 system.

Michael

-- 
Michael Peppler                              Data Migrations, Inc.
mpeppler@peppler.org                       http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short
or long term contract positions - http://www.peppler.org/resume.html