Article View: news.software.nntp
Article #84235Re: Mail-to-News
From: Julien ÉLIE
Date: Thu, 04 Aug 2011 22:31
Date: Thu, 04 Aug 2011 22:31
18 lines
2199 bytes
2199 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...). -- Julien ÉLIE « En France, on n'a pas de pétrole, mais on a des idées ! Alors, j'ai troqué ma deux-chevaux contre une deux-bœufs ! » (Raymond Devos)
Technical Details
Message-ID:
<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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!news.glorb.com!feeder.erje.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-552-1-71-100.w83-200.abo.wanadoo.fr!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>Show Full Headers
Complete Article Headers
Message-ID: <j1f6jp$rp3$1@news.trigofacile.com> Subject: Re: Mail-to-News Date: Fri, 05 Aug 2011 00:31:21 +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> 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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!news.glorb.com!feeder.erje.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.aaubervilliers-552-1-71-100.w83-200.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 4 Aug 2011 22:31:21 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="aaubervilliers-552-1-71-100.w83-200.abo.wanadoo.fr:83.200.70.100"; logging-data="28451"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; fr; In-Reply-To: <LowADL.6K1.B.larch@bath.ac.uk> Lines: 17 X-Original-Bytes: 1929