Author: mturk Date: Sat Jul 16 13:52:19 2011 New Revision: 1147427 URL: http://svn.apache.org/viewvc?rev=1147427&view=rev Log: Use macro for checking EMFILE
Modified: commons/sandbox/runtime/trunk/src/main/native/shared/error.c Modified: commons/sandbox/runtime/trunk/src/main/native/shared/error.c URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/error.c?rev=1147427&r1=1147426&r2=1147427&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/native/shared/error.c (original) +++ commons/sandbox/runtime/trunk/src/main/native/shared/error.c Sat Jul 16 13:52:19 2011 @@ -778,7 +778,7 @@ AcrThrowByError(JNI_STDENV, int def, int cls = ACR_EX_ECONNRESET; else if (ACR_STATUS_IS_ECONNABORTED(err)) cls = ACR_EX_ECONNABORTED; - else if (err == ACR_EMFILE || err == ACR_ENOBUFS) + else if (ACR_STATUS_IS_EMFILE(err) || err == ACR_ENOBUFS) cls = ACR_EX_ENOBUFS; else if (err == ACR_EPERM) cls = ACR_EX_EPERM;