From: Elizabeth Mattijsen Date: Mon, 8 Jul 2002 23:40:32 +0000 (+0200) Subject: [DOC PATCH] Thread::Signal.pm X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3087ffe5392074af110039a182a495009358a8e1;p=p5sagit%2Fp5-mst-13.2.git [DOC PATCH] Thread::Signal.pm Message-Id: <4.2.0.58.20020708233854.024783b0@mickey.dijkmat.nl> p4raw-id: //depot/perl@17426 --- diff --git a/ext/Thread/Thread/Signal.pm b/ext/Thread/Thread/Signal.pm index d8f3627..1fede3e 100644 --- a/ext/Thread/Thread/Signal.pm +++ b/ext/Thread/Thread/Signal.pm @@ -5,7 +5,27 @@ our $VERSION = '1.00'; =head1 NAME -Thread::Signal - Start a thread which runs signal handlers reliably +Thread::Signal - Start a thread which runs signal handlers reliably (for old code) + +=head1 CAVEAT + +For new code the use of the C module is discouraged and +the direct use of the C and associated modules is encouraged instead. + +However, there is no direct equivalent of the Thread::Signal module in the +new implementation of threads. On the bright side: signals are now delivered +reliably to Perl programs that do not use threads. The handling of signals +with the new threading features is up to the underlying thread implementation +that is being used and may therefor be less reliable. + +If you want to specify a thread-specific signal, you can alter the %SIG hash +in the thread where you want to handle a signal differently from other threads. +This at least seems to work under Linux. But there are no guarantees and your +mileage may vary. + +For the whole story about the development of threads in Perl, and why you +should B be using this module unless you know what you're doing, see the +CAVEAT of the C module. =head1 SYNOPSIS