in reply to Re^3: a question on threads
in thread a question on threads
(with add_log being the sub that prints out messages to a logfile), this hook will be recognized even from within a thread. you then get the original error message plus a "thread was unable to start".$sig{__DIE__} = sub { add_log(shift) };
|
|---|