🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #4174

rnews locking

#4174
From: Evan Champion
Date: Tue, 23 Jan 1996 00:00
21 lines
1173 bytes
I have a problem whereby when multiple rnews are running they have a
tendancy to eventually all start processing the exact same news
batches.

In my case, I solved it by adding a | O_EXLOCK to the open() that
opens the news batch.

I am sure that I am not the only one that has run in to this problem.
I am thinking that an rnews that does proper file locking would be a
good addition to an upcoming inn1.4unoff release.

Is there already an rnews implementation that does file locking with
good cross-platform support that could replace the current rnews, or
does anyone have a set of patches that add locking support to the INN
rnews?

Evan



Technical Details
Message-ID: <4e1q28$4ic@piano.synapse.net>
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

Show Full Headers
Complete Article Headers
Message-ID: <4e1q28$4ic@piano.synapse.net>
Subject: rnews locking
Date: Tue, 23 Jan 1996 00:00:00 +0000
From: evanc@synapse.net (Evan Champion)
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: 136350909
Distribution: world
Organization: Synapse Internet [www.synapse.net]
Newsgroups: news.software.nntp