The stupid question is the question not asked | |
PerlMonks |
Re: Re: SIGALRM and gethostbyaddrby chip (Curate) |
on Mar 18, 2004 at 01:40 UTC ( [id://337578]=note: print w/replies, xml ) | Need Help?? |
it's also possible to set an unsafe signal with POSIX::sigaction, without switching the entire Perl program to unsafe signals. (Recent sigactions will actually let you set a signal safe or unsafe.)
It's worth noting, BTW, that unsafe signals are called "unsafe" for a reason. What you really need is a C signal handler in an XS or with Inline::C that can just return without causing even the slightest disturbance to Perl's interpreter state. -- Chip Salzenberg, Free-Floating Agent of Chaos
In Section
Seekers of Perl Wisdom
|
|