in reply to Re^5: RFC: Using 'threads' common aspects
in thread RFC: Using 'threads' common aspects
local $SIG{'KILL'} = sub { threads->exit(); };Why? If all you are going to do is terminate, why not just let that happen?
Well, it will "just happen". SIGKILL can't be caught, blocked or ignored. The process will simply be forced to exit when a SIGKILL is sent, the sub will never be invoked. Unless, of course, you run that code on a very strange non-POSIX system with a different signals implementation.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: RFC: Using 'threads' common aspects
by BrowserUk (Patriarch) on Jan 10, 2011 at 17:09 UTC | |
by afoken (Chancellor) on Jan 11, 2011 at 09:58 UTC |