Changeset 337 in svn for trunk/mmap.c


Ignore:
Timestamp:
2006-12-17T04:20:43+01:00 (9 years ago)
Author:
Xuefer
Message:

1.2->trunk: [334] robust error handling on shm init

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/mmap.c

    r305 r337  
    176176        if (strncmp(shm->name, "/dev", 4) == 0) {
    177177            perror(shm->name);
    178             errstr = "Cannot open file set by xcache.mmap_path";
     178            errstr = "Cannot open file set by xcache.mmap_path, check the xcache.size/var_size against system limitation";
    179179            goto err;
    180180        }
     
    183183        if (fd == -1) {
    184184            perror(shm->name);
    185             errstr = "Cannot open or create file set by xcache.mmap_path";
     185            errstr = "Cannot open or create file set by xcache.mmap_path, check the path permission or check xcache.size/var_size against system limitation";
    186186            goto err;
    187187        }
Note: See TracChangeset for help on using the changeset viewer.