From owner-freebsd-hackers Thu Aug 17 1:28:29 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from viper.dmpriest.com (viper.dmpriest.com [195.188.177.3]) by hub.freebsd.org (Postfix) with ESMTP id B2A3037B79C for ; Thu, 17 Aug 2000 01:28:06 -0700 (PDT) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca.tdx.co.uk [195.188.177.195]) by viper.dmpriest.com (8.9.3/8.9.3/Kp) with ESMTP id JAA53166 for ; Thu, 17 Aug 2000 09:28:02 +0100 (BST) Message-ID: <399BA212.A84240AE@tdx.co.uk> Date: Thu, 17 Aug 2000 09:28:02 +0100 From: Karl Pielorz Organization: The Digital eXchange X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: hackers@freebsd.org Subject: Critical (or equivalent) section in Userland? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, 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... The software is running as user 'root' - does anyone have any pointers on how I can do this? (or how close I'll be able to get to doing this) - Theres only going to be around 6 or 7 calls to rename() but I must ensure they _all_ happen before any other process is allowed to run again... I realise that this doesn't exactly sound like good software engineering, but it's the only way I can solve a problem I'm having with Sendmail... :( Thanks for any info... Regards, Karl Pielorz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message