|
From: John L. <joh...@gm...> - 2008-11-09 02:11:11
|
Mike
> Can you provide code to reproduce the problem? I'd be happy to track it
> down.
I haven't been able to reproduce the strife I was having; most use of
signals was failing.
However, there is the obvious. My perl 5.10 is delivering all OS
signals to the 'main' thread, so the logger in it gets the HUP but not
the others (cloned from the first by the threads mechanism). A simple
fix is:
Log::Log4perl->init_and_watch("dllog.conf", 'HUP',
{preinit_callback => \&propagate_hup} );
sub propagate_hup {
for my $t (threads->list) { $t->kill('HUP'); }
return 1;
}
I'll use this and report any trouble.
Regards, John
|