Article View: news.software.nntp
Article #82745Re: NNRPD - connect message in syslog
From: D. Stussy
Date: Thu, 04 Feb 2010 22:33
Date: Thu, 04 Feb 2010 22:33
32 lines
2497 bytes
2497 bytes
"Julien ΓLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:hkd0lo$opq$1@news.trigofacile.com... > Hi D. Stussy, > > Hint: It would be nice if the NNRPD connection message in the syslog > > indicated the server's port number (so one can tell if a peer executed > > "mode reader" on port 119, or if someone came in on port 563, etc.). This > > is especially helpful when NNRPD is spawned as a child process of INN or > > inetd. > > OK, will be in INN 2.5.2. > To differentiate different instances of nnrpd, you can also name the > program differently. Debian for instance uses "nnrpd-ssl" and that's > what is mentioned in relevant news.notice lines. There may be other situations where non-standard port numbers are used (e.g. "-p"), so this is more portable to those, and probably preferred to a link in the filesystem providing an alias name to the nnrpd executable. > > Also, at line 1034, should we "free(path);"? I think we should keep the > > filename of our PID file around and unlink it as we exit - i.e. in > > ExitWithStats() starting at line 196. > > path is a local variable in main(). It is destroyed after being used. > Why would you retain it longer than needed? To delete the PID file when the process exits. Unlink() takes a file-system name.
Technical Details
Message-ID:
<hkfi18$jmq$1@snarked.org>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!nx02.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!news-out.readnews.com!transit3.readnews.com!news.linkpendium.com!news.linkpendium.com!news.snarked.org!not-for-mailReferences:
<hka2rk$3p4$1@snarked.org> <hkd0lo$opq$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <hkfi18$jmq$1@snarked.org> Subject: Re: NNRPD - connect message in syslog Date: Thu, 4 Feb 2010 14:33:54 -0800 From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> References: <hka2rk$3p4$1@snarked.org> <hkd0lo$opq$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!nx02.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!news-out.readnews.com!transit3.readnews.com!news.linkpendium.com!news.linkpendium.com!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 32 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> NNTP-Posting-Host: 71.118.51.220 X-Trace: snarked.org 1265322856 20186 71.118.51.220 (4 Feb 2010 22:34:16 GMT) X-Complaints-To: newsmaster+complaints@snarked.org NNTP-Posting-Date: Thu, 4 Feb 2010 22:34:16 +0000 (UTC) X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478