diff options
author | Marcus Alves Grando <mnag@FreeBSD.org> | 2009-02-24 19:06:37 +0000 |
---|---|---|
committer | Marcus Alves Grando <mnag@FreeBSD.org> | 2009-02-24 19:06:37 +0000 |
commit | cdb4dd0cea5dd0f44719e29d55e854339dfd5703 (patch) | |
tree | 45a6fdac509f23afe8d1b4ce16f54d05779be436 /www/lighttpd | |
parent | 1be10588a377aabcc3b1078714badade12149fef (diff) |
- Backport EPIPE case in sendfile backend. [1]
- portlint(1)
- Bump PORTREVISION
Reported by: Jeroen Ruigrok van der Werven <asmodai__in-nomine.org> [1]
Notes
Notes:
svn path=/head/; revision=229007
Diffstat (limited to 'www/lighttpd')
-rw-r--r-- | www/lighttpd/Makefile | 3 | ||||
-rw-r--r-- | www/lighttpd/files/patch-src__network_freebsd_sendfile.c | 16 |
2 files changed, 11 insertions, 8 deletions
diff --git a/www/lighttpd/Makefile b/www/lighttpd/Makefile index 7c5260380ea0..93af80a68cd0 100644 --- a/www/lighttpd/Makefile +++ b/www/lighttpd/Makefile @@ -7,7 +7,7 @@ PORTNAME= lighttpd PORTVERSION= 1.4.21 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES= http://www.lighttpd.net/download/ \ http://mirrors.cat.pdx.edu/lighttpd/ @@ -23,7 +23,6 @@ GNU_CONFIGURE= yes USE_GNOME= lthack USE_RC_SUBR= lighttpd.sh CONFIGURE_ARGS= --libdir=${PREFIX}/lib/lighttpd -CONFIGURE_ENV+= CFLAGS="${CFLAGS}" CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib diff --git a/www/lighttpd/files/patch-src__network_freebsd_sendfile.c b/www/lighttpd/files/patch-src__network_freebsd_sendfile.c index f823657de4c1..69cc9d33fc24 100644 --- a/www/lighttpd/files/patch-src__network_freebsd_sendfile.c +++ b/www/lighttpd/files/patch-src__network_freebsd_sendfile.c @@ -1,14 +1,18 @@ # -# Backport http://redmine.lighttpd.net/projects/lighttpd/repository/revisions/2403 +# Backport http://redmine.lighttpd.net/issues/show/1913 # ---- src/network_freebsd_sendfile.c.orig 2009-02-24 11:05:06.000000000 -0300 -+++ src/network_freebsd_sendfile.c 2009-02-24 11:12:15.000000000 -0300 -@@ -167,7 +167,7 @@ +--- src/network_freebsd_sendfile.c.orig 2009-02-05 09:41:44.000000000 -0200 ++++ src/network_freebsd_sendfile.c 2009-02-24 15:11:29.000000000 -0300 +@@ -167,8 +167,9 @@ switch(errno) { case EAGAIN: case EINTR: - r = 0; /* try again later */ -+ /* for EAGAIN and EINTR r still contains the sent bytes */ - break; +- break; ++ /* for EAGAIN/EINTR r still contains the sent bytes */ ++ break; /* try again later */ ++ case EPIPE: case ENOTCONN: return -2; + default: + |