Commit e2b88415be92fa9cbd9fb162ad95eb8158cd9ac8

Authored by Georg Hopp
1 parent c1606a45

--no commit message

Showing 1 changed file with 2 additions and 3 deletions
... ... @@ -19,7 +19,6 @@
19 19 * Date: 14th Oct. 2007
20 20 ***************************************************************************/
21 21
22   -require_once dirname(__FILE__) . '/../config.php';
23 22 require_once LIBDIR . 'errException.php';
24 23
25 24 /**
... ... @@ -69,9 +68,9 @@ function acquireLock ($lockFile, $csId, $msg = NULL)
69 68 }
70 69 else
71 70 {
72   - $state = flock ($lock, LOCK_EX);
  71 + $state = flock ($lockHandle, LOCK_EX);
73 72 while ($state === FALSE)
74   - $state = flock ($lock, LOCK_EX);
  73 + $state = flock ($lockHandle, LOCK_EX);
75 74 }
76 75
77 76 // Here one could write informations in the lockfile...time, pid, etc.
... ...
Please register or login to post a comment