On a more elementary level, why does this code:
produce this output:use strict; use warnings; use 5.010; use threads; sub thr_func { say 'in thread'; $SIG{'HUP'} = sub { say "signal caught" }; } my $thr = threads->create('thr_func'); $thr->kill('HUP')->join();
Signal SIGHUP received, but no signal handler set.
The threads docs seem pretty clear that you can signal a thread.
In reply to Re: Catching signals under Linux
by 7stud
in thread Catching signals under Linux
by weismat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |