Changeset 1ef6c24 in git


Ignore:
Timestamp:
2011-04-18T07:19:02Z (8 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
13e1835
Parents:
fcf2749
Message:

ignore EINVAL error for ftruncate on /dev/zero

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@768 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mmap.c

    rfcf2749 r1ef6c24  
    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.