tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1441792 - /tomcat/native/branches/1.1.x/native/src/poll.c
Date Sat, 02 Feb 2013 19:25:49 GMT
Author: mturk
Date: Sat Feb  2 19:25:49 2013
New Revision: 1441792

URL: http://svn.apache.org/viewvc?rev=1441792&view=rev
Log:
Fix BZ55413 by ensuring the returned value is number of event/sockets pairs

Modified:
    tomcat/native/branches/1.1.x/native/src/poll.c

Modified: tomcat/native/branches/1.1.x/native/src/poll.c
URL: http://svn.apache.org/viewvc/tomcat/native/branches/1.1.x/native/src/poll.c?rev=1441792&r1=1441791&r2=1441792&view=diff
==============================================================================
--- tomcat/native/branches/1.1.x/native/src/poll.c (original)
+++ tomcat/native/branches/1.1.x/native/src/poll.c Sat Feb  2 19:25:49 2013
@@ -477,5 +477,5 @@ TCN_IMPLEMENT_CALL(jint, Poll, pollset)(
     }
     if (n > 0)
         (*e)->SetLongArrayRegion(e, set, 0, n, p->set);
-    return n;
+    return n / 2;
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message