It acts globally on all the threads that may spawn anywhere in your program, with the exception of the main thread.
+The hook will also be called when pseudo-forks (i.e. processes spawn on Windows for the C<fork> emulation) terminate.
+
=head1 FUNCTIONS
=head2 C<register>