Article View: news.software.nntp
Article #42069Re: Question regarding INN's use of the newsgroups file...
From: Andrew Gierth
Date: Fri, 10 Dec 1999 00:00
Date: Fri, 10 Dec 1999 00:00
28 lines
1615 bytes
1615 bytes
>>>>> "Brad" == Brad Knowles <brad@shub-internet.org> writes: Brad> ln -f newsgroups.new newsgroups Brad> You can do this with processes that re-open the file each Brad> time they need to access it, because the ln is an atomic Brad> operation, no, actually, it's not. (ln -f uses separate unlink() and link() calls) The right way to do this is: ln -f newsgroups newsgroups.old mv newsgroups.new newsgroups Brad> Or would I need to update the file and then do something like a Brad> "ctlinnd reload newsgroups"? No. The newsgroups file is opened and closed within the scope of each LIST NEWSGROUPS command, it's not held incore, and innd never touches it at all AFAIK. -- Andrew.
Technical Details
Message-ID:
<87iu26kdcu.fsf@erlenstar.demon.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<brad-80D295.16155910121999@news.skynet.be>Show Full Headers
Complete Article Headers
Message-ID: <87iu26kdcu.fsf@erlenstar.demon.co.uk> Subject: Re: Question regarding INN's use of the newsgroups file... Date: Fri, 10 Dec 1999 00:00:00 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <brad-80D295.16155910121999@news.skynet.be> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 559037856 X-Mayan-Date: Long count = 12.19.6.13.18; tzolkin = 13 Etznab; haab = 6 Mac X-Complaints-To: andrew@erlenstar.demon.co.uk Organization: disorganised X-Attribution: AG X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29 X-P-Persistent-Headers: are a bad idea. Newsgroups: news.software.nntp X-Post-Filter: postfilter v0.6 alpha