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."<br>";
- if (($res = sem_get($tok)) == FALSE) {
+ // FIXME monitor this step
+ if (($res = @sem_get($tok)) == FALSE) {
echo "SEM_GET FAILED";
exit;
}
{
// 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);