[dw-free] theschwartz errors
[commit: http://hg.dwscoalition.org/dw-free/rev/75d1841dd16f]
http://bugs.dwscoalition.org/show_bug.cgi?id=3121
Only try to run the old handlers if they're actually functions. They may be
IGNORE or DEFAULT (which imply do nothing, or do the normal thing. In either
case, they're strings, not methods.
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3121
Only try to run the old handlers if they're actually functions. They may be
IGNORE or DEFAULT (which imply do nothing, or do the normal thing. In either
case, they're strings, not methods.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/ljlib.pl
-------------------------------------------------------------------------------- diff -r a7cc201be96d -r 75d1841dd16f cgi-bin/ljlib.pl --- a/cgi-bin/ljlib.pl Mon Nov 01 22:13:33 2010 +0800 +++ b/cgi-bin/ljlib.pl Mon Nov 01 22:34:58 2010 +0800 @@ -232,7 +232,7 @@ if ($SIG{'HUP'}) { if ($SIG{'HUP'}) { my $oldsig = $SIG{'HUP'}; $SIG{'HUP'} = sub { - &{$oldsig}; + &{$oldsig} if ref $oldsig eq "CODE"; LJ::clear_caches(); }; } else { --------------------------------------------------------------------------------