From: Brian Havard Date: Mon, 20 Aug 2001 10:56:44 +0000 (+0000) Subject: Make test for EAGAIN portable in content length filter. This fixes some X-Git-Tag: 2.0.25~260 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3663a64d3c510409b748db2d74dd3035cdc8fbba;p=apache Make test for EAGAIN portable in content length filter. This fixes some failures in CGIs on OS/2. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90394 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index a832ada172..0762861002 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -916,7 +916,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_content_length_filter(ap_filter_t *f, /* Attempt a nonblocking read next time through */ eblock = APR_NONBLOCK_READ; } - else if (rv == APR_EAGAIN) { + else if (APR_STATUS_IS_EAGAIN(rv)) { /* Make the next read blocking. If the client supports chunked * encoding, flush the filter stack to the network. */