Changeset 768 for trunk/mmap.c


Ignore:
Timestamp:
2011-04-18T09:19:02+02:00 (3 years ago)
Author:
moo
Message:

ignore EINVAL error for ftruncate on /dev/zero

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mmap.c

    r767 r768  
    188188    } 
    189189 
    190     if (ftruncate(fd, size) != 0) { 
     190    if (ftruncate(fd, size) != 0 && errno != EINVAL) { 
    191191        perror(shm->name); 
    192192        errstr = "Failed to ftruncate the file"; 
Note: See TracChangeset for help on using the changeset viewer.