File: ftlock.htm

package info (click to toggle)
fbbdoc 1%3A1999-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 764 kB
  • ctags: 48
  • sloc: makefile: 29
file content (23 lines) | stat: -rw-r--r-- 1,667 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>LOCK-files (Appendix 31)</title>
</head>
 <body background="/back_fbb.jpg">
 
<p>  </p>
<h1 align="Center">   LOCK-files (.LCK) </h1>
 
<p align="Center"> (Appendix 31)<small>.</small> </p>
<p> Added lock files when importing and exporting mail (same filename, extension 
added or replaced = "lck") </p>
<pre>This means that while FBB is using MAIL.IN a file named MAIL.LCK exists.<br>In the same way, if a file named MAIL.LCK exists, FBB will delay MAIL.IN<br>This is to avoid conflicts between applications.<br><br><br>MAIL.LCK is not imported, it is only a (empty) temporary file which is used<br>as a flag.<br><br>When FBB imports MAIL.IN it does :<br><br>if MAIL.LCK exists<br>then begin<br>    do not import MAIL.IN<br>    if MAIL.LCK is older than one hour<br>    then begin<br>        delete (if possible) MAIL.LCK<br>    end<br>end<br>else begin<br>    create MAIL.LCK<br>    import MAIL.IN<br>    delete MAIL.LCK<br>end<br><br>this is checked every minute until MAIL.LCK no longer exist.<br><br>When FBB exports LA6CU.OUT, it does :<br><br>if LA6CU.LCK exists<br>then begin<br>    do not export LA6CU.OUT<br>    if LA6CU.LCK is older than one hour<br>    then begin<br>        delete (if possible) LA6CU.LCK<br>    end<br>end<br>else begin<br>    create LA6CU.LCK<br>    export LA6CU.OUT<br>    delete LA6CU.LCK<br>end<br><br>Another application should do the same to avoid conflicts.<br><br>Lock-files are deleted (if possible) after 1 hour.<br><br></pre>
 
<pre>&nbsp;&nbsp;

<font color="#800000">This page was last updated 17-Apr-99</font>

</pre>
 
</body>
</html>