Article View: news.software.nntp
Article #84258Re: Mail-to-News
From: Julien ÉLIE
Date: Wed, 10 Aug 2011 19:41
Date: Wed, 10 Aug 2011 19:41
22 lines
2125 bytes
2125 bytes
Hi Dennis, >> Some time ago I was trying to set up locking in shell scripts. I >> used the code below. I'm sure I got this idea from Cnews, it relies >> on hard-linking being an atomic event on Unix systems to avoid race >> conditions. This, or similar code, is readily translated to perl >> and would give a primitive form of locking for stand-alone programs >> such as signcontrol. > > I am unsure this code prevents race conditions in all circunstances > (with NFS, with multiple cores...). http://rute.2038bug.com/node23.html.gz 20.9.2 Locking over NFS “the ln function does not work exactly right over NFS -- you need to stat the file and actually check that the link count has increased to 2.” -- Julien ÉLIE « Sitis licita, etiam potio licita. »
Technical Details
Message-ID:
<9ag581F7j9U1@mid.individual.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.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<iuaorh$gbt$1@n102.xanadu-bbs.net> <ivvjd7$c15$1@news.trigofacile.com> <LoJ8po.KpC.B.larch@bath.ac.uk> <j0i3oa$k8a$1@news.trigofacile.com> <LowADL.6K1.B.larch@bath.ac.uk> <j1f6jp$rp3$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <9ag581F7j9U1@mid.individual.net> Subject: Re: Mail-to-News Date: Wed, 10 Aug 2011 21:41:53 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <iuaorh$gbt$1@n102.xanadu-bbs.net> <ivvjd7$c15$1@news.trigofacile.com> <LoJ8po.KpC.B.larch@bath.ac.uk> <j0i3oa$k8a$1@news.trigofacile.com> <LowADL.6K1.B.larch@bath.ac.uk> <j1f6jp$rp3$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.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 22 Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net Q2zuDMw49UO37v+EOqWGfQ1Ek1Bn9mux0VI5zRMHn9MrnXJIA= Cancel-Lock: sha1:0+vdJShxF8XR/aS00CR6A5ivInQ= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; fr; In-Reply-To: <j1f6jp$rp3$1@news.trigofacile.com> X-Original-Bytes: 1956