From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Beau Date: Fri, 27 Jun 2003 15:15:16 +0000 Subject: Re: Hotplug bug in Linux 2.4.21? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org For the sake of completeness: On Sunday 22 June 2003 08:31, Adrien Beau wrote: > > It doesn't matter any more, though, since I have found a > solution to this problem. (...) > I ended up using > > [ `expr $currenttime '-' $timestamp` -lt $MAX_LOCK_AGE ] > > instead, which works fine. Which works better, actually, but sometimes still fails. I've also had cases where all three tests for the existence of the lockfile would run at the same time, before it was created. I've solved this problem by storing the pid in the lockfile, so a script instance can know if its lockfile got overwritten. Now it works fine. -- adrien.beau@free.fr - http://adrien.beau.free.fr/ ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel