<!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">
On 12/07/11 16:29, João Carlos Mendes Luís wrote:
<blockquote cite="mid:4E1C6856.4060408@jonny.eng.br" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<tt>Using "touch" and "test -e"</tt> as a lock test is not safe.
If the shell dies for any reason, the lock file will get stale.<br>
<br>
If you sync station is linux, a safer option is to use the
flock(1) program:<br>
<br>
</blockquote>
<br>
+1<br>
Or withlock.<br>
<br>
<br>
</body>
</html>