<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Samuel Liddicott wrote:<br>
<blockquote cite="mid4161A60C.3080000@liddicott.com" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
<br>
Olly Betts wrote:
<blockquote cite="mid20041004162634.GC13429@survex.com" type="cite">
<pre wrap="">Do we know that?
You can certainly create a new symlink with a temporary name, then use
rename() to replace the old symlink with the old one. And according to
"man 2 rename":
If newpath already exists it will be atomically replaced (subject to a
few conditions - see ERRORS below), so that there is no point at which
another process attempting to access newpath will find it missing.
Nothing in the ERRORS section seems to say that symlinks aren't replaced
atomically. </pre>
</blockquote>
You're smart.<br>
</blockquote>
<br>
Does omega chdir to the database dir before opening all the files? Or
is there a race condition as the symlink changes if a DB is being
opened?<br>
<br>
Sam<br>
</body>
</html>