On Mar 19, 2004, at 1:31 PM, Joel wrote:
[..]I'll toss in my two cents here, since I've done something like this before in a production-type environment.
IMHO, The best thing to do would be to have your signal handler set a
flag (in the manner described by drieux) and have your loop react to that
flag when it changes. This is a slight difference from what drieux did.
$SIG{USR2} = sub { $sig_flag++};[..]
You know, that's one of those 'religious' issues that I still don't feel that I have a 'solid' answer on one way or the other... I think as a general rule of thumb I'd probably tilt more towards this strategy.... but...
ciao drieux