develooper Front page | perl.perl5.porters | Postings from February 2003

$SIG::UNSAFE and Sys::Signal

From:
Adam Sussman
Date:
February 28, 2003 02:20
Subject:
$SIG::UNSAFE and Sys::Signal
Message ID:
EA1EFE0551BFD511A98700508BE25CCD04AAF1AA@pasmail2.office.tmcs

For perl versions prior to 5.8, there was a CPAN module called Sys::Signal
who's
purpose was to clean up after perl's usafe signal handling.  Does restoring
the old
signal handling mean that we should use Sys::Signal again?  This module has
proven
to be necessary for mod_perl apps using alarms and it does not compile under
5.8 at all.

From Sys::Signal's description:

  The Sys::Signal set method works much like "local $SIG{FOO}", but with the
added
  functionality of restoring the underlying signal handler to the previous C
function,
  rather than Perl's.  Unless, of course, Perl's C signal handler was the
previous
  handler.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About