Article View: news.software.nntp
Article #79738Re: cnfsstat not writing to syslog
From: Julien ÉLIE
Date: Sat, 22 Nov 2008 17:55
Date: Sat, 22 Nov 2008 17:55
49 lines
2774 bytes
2774 bytes
Hi Russ,
> As of Sys::Syslog 0.15, you can disable this and force it to just call the
> libc syslog() function by calling:
>
> setlogsock('native');
>
> before using Sys::Syslog. I suspect that INN should start doing that as
> long as the version of Sys::Syslog is new enough.
I have put the following code in :
backends/news2mail.in
backends/send-uucp.in
control/controlchan.in
control/gpgverify.in
control/perl-nocem.in
frontends/cnfsstat.in
frontends/mailpost.in
You may also want to update pgpverify and release a new version.
my $use_syslog = 0;
eval { require Sys::Syslog; import Sys::Syslog; $use_syslog = 1; };
if ($use_syslog) {
if ($Sys::Syslog::VERSION < 0.15) {
eval "sub Sys::Syslog::_PATH_LOG { '/dev/log' }" if $^O eq 'dec_osf';
Sys::Syslog::setlogsock('unix') if $^O =~ /linux|dec_osf|freebsd|darwin/;
}
openlog('xxx', 'yyy', $INN::Config::syslog_facility);
}
Perl documentation for Sys::Syslog now writes:
The First Rule of Sys::Syslog is: You do not call setlogsock.
The Second Rule of Sys::Syslog is: You *do not* call setlogsock.
--
Julien ÉLIE
« Les ordinateurs dans le futur ne pèseront peut-être pas plus de
1,5 tonne. » (Popular Mechanics, 1949)
Technical Details
Message-ID:
<gg9h2d$lbo$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!feeder.erje.net!fdn.fr!gegeweb.org!news.trigofacile.com!not-for-mailReferences:
<gg166a$7v9$1@e250.ripco.com> <gg1a5j$4uh$1@news.trigofacile.com> <gg1n5l$doi$1@e250.ripco.com> <gg2437$i21$1@e250.ripco.com> <gg3s31$4vg$1@e250.ripco.com> <87vdui8ip7.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <gg9h2d$lbo$1@news.trigofacile.com> Subject: Re: cnfsstat not writing to syslog Date: Sat, 22 Nov 2008 18:55:24 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <gg166a$7v9$1@e250.ripco.com> <gg1a5j$4uh$1@news.trigofacile.com> <gg1n5l$doi$1@e250.ripco.com> <gg2437$i21$1@e250.ripco.com> <gg3s31$4vg$1@e250.ripco.com> <87vdui8ip7.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!feeder.erje.net!fdn.fr!gegeweb.org!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 49 NNTP-Posting-Host: aaubervilliers-151-1-85-118.w83-199.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1227376525 21880 83.199.148.118 (22 Nov 2008 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Sat, 22 Nov 2008 17:55:25 +0000 (UTC) In-Reply-To: <87vdui8ip7.fsf@windlord.stanford.edu> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049