Sybperl and signals
"Alan Olsen" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Organization | ODS Health Plans |
| Message-ID | <1142013593.2988.4.camel@odshp> |
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 <[email protected]>
ODS Health Plans