On Sep 21, John Edwards said:
>do {
> $artikelID = &newID;
>} until (! -e $ARTIKEL_DIR.$artikelID);
That produces a race condition. Between the checking for the existence of
the file, and the opening of the file itself, the file COULD be created.
I suggest the use of the sysopen() function.
Try
do {
$artikelID = &newID;
} until (! -e $ARTIKEL_DIR.$artikelID);
open ($artikelID);
That checks for the existence of the file (-e).
John
-Original Message-
From: Martijn van Exel [mailto:[EMAIL PROTECTED]]
Sent: 21 September 2001 16:03
To: [EMAIL PROTECTED]
Subject: checking