X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2FObj%2Fbriskin5.phh;h=f2147d6e342a50829b2a221604faae7e9c0e545c;hb=a8c6e814800a78f4325d49f8a08a0332d45a3842;hp=2767c4eab7ae3e02c0b272b0c07aa150bdd120d0;hpb=faf9feed79ac32b41afc6bf4c954f92a028ab4ed;p=brisk.git diff --git a/web/briskin5/Obj/briskin5.phh b/web/briskin5/Obj/briskin5.phh index 2767c4e..f2147d6 100644 --- a/web/briskin5/Obj/briskin5.phh +++ b/web/briskin5/Obj/briskin5.phh @@ -23,7 +23,7 @@ class Briskin5 { $this->the_end = FALSE; - if (($this->tok = ftok(FTOK_PATH."/table".$table_idx, "B")) == -1) { + if (($this->tok = @ftok(FTOK_PATH."/table".$table_idx, "B")) == -1) { echo "FTOK FAILED"; exit; } @@ -126,7 +126,7 @@ class Briskin5 { $shm = FALSE; log_wr("TABLE_IDX ".FTOK_PATH."/table".$table_idx); - if (($tok = ftok(FTOK_PATH."/table".$table_idx, "B")) == -1) { + if (($tok = @ftok(FTOK_PATH."/table".$table_idx, "B")) == -1) { echo "FTOK FAILED"; exit; } @@ -216,7 +216,7 @@ class Briskin5 { log_main("DESTROY2 BRISKIN5 DATA"); - if (($tok = ftok(FTOK_PATH."/table".$table_idx, "B")) == -1) + if (($tok = @ftok(FTOK_PATH."/table".$table_idx, "B")) == -1) break; if (($shm = shm_attach($tok, BRISKIN5_SHM_DIMS)) === FALSE) @@ -248,12 +248,13 @@ class Briskin5 { log_wr("LOCK_DATA ".FTOK_PATH."/table".$table_idx); // echo "LOCK: ".FTOK_PATH."/main"; // exit; - if (($tok = ftok(FTOK_PATH."/table".$table_idx, "B")) == -1) { + // FIXME monitor this step + if (($tok = @ftok(FTOK_PATH."/table".$table_idx, "B")) == -1) { echo "FTOK FAILED"; exit; } - // echo "FTOK ".$tok."
"; - if (($res = sem_get($tok)) == FALSE) { + // FIXME monitor this step + if (($res = @sem_get($tok)) == FALSE) { echo "SEM_GET FAILED"; exit; } @@ -437,7 +438,7 @@ function locshm_exists($tok) { // return (TRUE); - if (($id = shmop_open($tok,"a", 0, 0)) == FALSE) { + if (($id = @shmop_open($tok,"a", 0, 0)) == FALSE) { log_main($tok." SHM NOT exists"); return (FALSE);