sybperl-l Archive
Up Prev Next
From: "Alan Olsen" <olsena at odscompanies dot com>
Subject: Sybperl and signals
Date: Mar 10 2006 5:59PM
I am getting some odd behavior trying to hook signals when ctlib is
loaded.
Here is a bit of example code written by a co-worker:
#!/usr/bin/perl
use Sybase::CTlib;
$SIG{INT}= sub {print "sigcat called with @_[0]\n"; exit;};
sleep 60;
Control-c causes a segfault with the "use Sybase::CTlib;" line and works
correctly with it commented out.
Ideas?
I am dealing with a forked program that we want to clean up correctly
when stopped by the user. (Otherwise it leaves some nasty hanging
processes around.)
--
Alan Olsen
ODS Health Plans
|