Project

General

Profile

Actions

Bug #1441

closed

mmap fails when HAVE_MEM_MMAP_ANON because of zero length

Added by japc about 17 years ago. Updated over 8 years ago.

Status:
Obsolete
Priority:
High
Category:
core
Target version:
ASK QUESTIONS IN Forums:

Description

Because c->file.copy.length is not changed from 0 the mmap fails. If if it worked the assert further ahead would fail.

This patch fixes that.

To see if afected, search log files for:

network_posix_aio.c.358: (error) the mmap() failed, no way for a fallback:
connections.c.1370: (trace) (network-subsys sent us a fatal-error)


Files

lighttpd-network_posix_aio-mmap.patch-2 (576 Bytes) lighttpd-network_posix_aio-mmap.patch-2 lighttpd-network_posix_aio-mmap.patch japc, 2008-01-11 22:32
lighttpd-network_posix_aio-mmap.patch (576 Bytes) lighttpd-network_posix_aio-mmap.patch lighttpd-network_posix_aio-mmap.patch japc, 2008-01-11 22:33
Actions #1

Updated by japc about 17 years ago

Forgot to mention that this patch is for 1.5.0-r1992.

Actions #2

Updated by Anonymous almost 17 years ago

I can confirm this fix works. I had trouble applying the patch, but it's only one line, so I copied it into the source and it worked just fine. Add to trunk please.

Actions #3

Updated by gstrauss over 8 years ago

  • Description updated (diff)
  • Assignee deleted (jan)
  • Missing in 1.5.x set to Yes

not an issue in lighttpd 1.4.x

Actions #4

Updated by gstrauss over 8 years ago

  • Status changed from New to Obsolete
Actions

Also available in: Atom