diff options
author | Elizabeth Mattijsen <liz@dijkmat.nl> | 2002-07-09 01:40:32 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-07-08 21:38:24 +0000 |
commit | 8aa78e6ab2bfc119d28eaa1529648334f1933e6b (patch) | |
tree | 5658b920fdb01e7d2bfc39c1321ff39f77580088 /ext | |
parent | 9f4f13a87a86ea7b568e106a53486fe37a24179b (diff) | |
download | perl-8aa78e6ab2bfc119d28eaa1529648334f1933e6b.tar.gz |
[DOC PATCH] Thread::Signal.pm
Message-Id: <4.2.0.58.20020708233854.024783b0@mickey.dijkmat.nl>
p4raw-id: //depot/perl@17426
Diffstat (limited to 'ext')
-rw-r--r-- | ext/Thread/Thread/Signal.pm | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/ext/Thread/Thread/Signal.pm b/ext/Thread/Thread/Signal.pm index d8f3627470..1fede3ec8a 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<Thread::Signal> module is discouraged and +the direct use of the C<threads> 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<not> be using this module unless you know what you're doing, see the +CAVEAT of the C<Thread> module. =head1 SYNOPSIS |