[fpc-pascal]Delay replacement...

Ziegenhorn Tourism Database info at ziegenhorn.de
Tue Nov 28 10:04:09 CET 2000

At Tue, 28 Nov 2000, fpc-pascal at deadlock.et.tudelft.nl wrote:
>Hi, everybody!
>I am currently writing some CGI programs which need exclusive access to
>particular files. (Never must these files be accessed from more that one
>instance of this program, but -- because of the nature of cgi -- it can
>theoretically be launched unlimited times...
>So I use a lock file which I place in /tmp/ and the program tests its
>presence and waits until it is vanished, then it creates one by itself...

Maybe you should try file-locking?
See docs

Ziegenhorn Tourism Database
P.O. Box 16 45
76726 Germersheim, Germany
Tel: +49-7274-2759 Fax: +49-7274-3631

More information about the fpc-pascal mailing list