Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

perlman:Thread::Signal

by root (Scribe)
on Dec 23, 1999 at 00:53 UTC ( #1261=perlfunc: print w/replies, xml ) Need Help??

Thread::Signal

See the current Perl documentation for Thread::Signal.

Here is our local, out-dated (pre-5.6) version:


Thread::Signal - Start a thread which runs signal handlers reliably



    use Thread::Signal;

    $SIG{HUP} = \&some_handler;



The Thread::Signal module starts up a special signal handler thread. All signals to the process are delivered to it and it runs the associated $SIG{FOO} handlers for them. Without this module, signals arriving at inopportune moments (such as when perl's internals are in the middle of updating critical structures) cause the perl code of the handler to be run unsafely which can cause memory corruption or worse.


BUGS

This module changes the semantics of signal handling slightly in that the signal handler is run separately from the main thread (and in parallel with it). This means that tricks such as calling die from a signal handler behave differently (and, in particular, can't be used to exit directly from a system call).


Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
Corion had a meeting with some startup today. They have a very interesting DB proxy product, but their tech stack is really, really weird. They use the Pg wire protocol but not the Pg libraries to handle it. They support Pg SQL syntax, but don't use ...
[Corion]: ... the Pg parser (or so they claim).
[Corion]: Also, they rolled their own user management instead of supporting LDAP for user/role management, but that just shows that they're new in the enterprise market :)
Corion also just now realizes they didn't leave business cards.
[erix]: can you drop a name? :)
[karlgoethebier]: Corion: "...didn't leave business cards" Those guys came from Muränia?

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2018-04-19 12:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?