Date: Thu, 17 Aug 2000 10:06:52 +0100 From: David Malone <dwmalone@maths.tcd.ie> To: Karl Pielorz <kpielorz@tdx.co.uk> Cc: hackers@freebsd.org Subject: Re: Critical (or equivalent) section in Userland? Message-ID: <20000817100652.A31452@walton.maths.tcd.ie> In-Reply-To: <399BA212.A84240AE@tdx.co.uk>; from kpielorz@tdx.co.uk on Thu, Aug 17, 2000 at 09:28:02AM %2B0100 References: <399BA212.A84240AE@tdx.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 17, 2000 at 09:28:02AM +0100, Karl Pielorz wrote: > I'm writing a program under FreeBSD 3.X that has been forced into having to > make a number of rename() calls that must be completed atomically (i.e. all > together) without the process being interrupted, or any other process being > allowed to run... This isn't possible without serious hackery - you don't want to do it. If all the files exist below one directory you could swap the directories with two renames, but that won't be atomic either. I think your best bet would be rethink what you want to do. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000817100652.A31452>