apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1539389 - /apr/apr/trunk/configure.in
Date Wed, 06 Nov 2013 16:38:07 GMT
Author: sf
Date: Wed Nov  6 16:38:06 2013
New Revision: 1539389

URL: http://svn.apache.org/r1539389
Log:
Fix fcntl(fd, F_GETFL) call in r1539374

Modified:
    apr/apr/trunk/configure.in

Modified: apr/apr/trunk/configure.in
URL: http://svn.apache.org/viewvc/apr/apr/trunk/configure.in?rev=1539389&r1=1539388&r2=1539389&view=diff
==============================================================================
--- apr/apr/trunk/configure.in (original)
+++ apr/apr/trunk/configure.in Wed Nov  6 16:38:06 2013
@@ -970,9 +970,9 @@ int main(int argc, char **argv)
 
     if ((fd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
         return 1;
-    if (fcntl(fd, F_GETFL, &flags) == -1 ||
-        fcntl(fd, F_SETFL, flags|O_NONBLOCK) == -1)
-        return 1;
+    flags = fcntl(fd, F_GETFL);
+    if (flags == -1 || fcntl(fd, F_SETFL, flags|O_NONBLOCK) == -1)
+        return 5;
 
     memset(&sin, 0, sizeof sin);
     sin.sin_family = AF_INET;



Mime
View raw message