projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
locking recovery added
[brisk.git]
/
web
/
Obj
/
auth.phh
diff --git
a/web/Obj/auth.phh
b/web/Obj/auth.phh
index
292ab0c
..
fdebea7
100644
(file)
--- a/
web/Obj/auth.phh
+++ b/
web/Obj/auth.phh
@@
-246,13
+246,11
@@
class Challenges {
function lock_data()
{
if (($tok = @ftok(FTOK_PATH."/challenges", "B")) == -1) {
function lock_data()
{
if (($tok = @ftok(FTOK_PATH."/challenges", "B")) == -1) {
- echo "FTOK FAILED";
- exit;
+ return (FALSE);
}
// echo "FTOK ".$tok."<br>";
if (($res = sem_get($tok)) == FALSE) {
}
// echo "FTOK ".$tok."<br>";
if (($res = sem_get($tok)) == FALSE) {
- echo "SEM_GET FAILED";
- exit;
+ return (FALSE);
}
if (sem_acquire($res)) {
log_lock("LOCK challenges");
}
if (sem_acquire($res)) {
log_lock("LOCK challenges");