You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ro...@apache.org on 2006/10/09 16:59:23 UTC

svn commit: r454400 - in /apr/apr/trunk: CHANGES poll/unix/epoll.c

Author: rooneg
Date: Mon Oct  9 07:59:23 2006
New Revision: 454400

URL: http://svn.apache.org/viewvc?view=rev&rev=454400
Log:
Fix error checking in epoll version of apr_pollset_create.

Submitted by: Larry Cipriani <lvc lucent.com>

* poll/unix/epoll.c
  (apr_pollset_create): Fix bug in precedence in error checking for
   mutex creation.

* CHANGES: Note change.

Modified:
    apr/apr/trunk/CHANGES
    apr/apr/trunk/poll/unix/epoll.c

Modified: apr/apr/trunk/CHANGES
URL: http://svn.apache.org/viewvc/apr/apr/trunk/CHANGES?view=diff&rev=454400&r1=454399&r2=454400
==============================================================================
--- apr/apr/trunk/CHANGES (original)
+++ apr/apr/trunk/CHANGES Mon Oct  9 07:59:23 2006
@@ -1,6 +1,9 @@
 Changes for APR 1.3.0
+  *) Fix error checking in epoll version of apr_pollset_create.
+     PR 40660 [Larry Cipriani <lvc lucent.com>]
+
   *) Fix error checking in kqueue version of apr_pollset_create.
-     PR 40662 [Larry Cipriani lvc lucent.com]
+     PR 40662 [Larry Cipriani <lvc lucent.com>]
 
   *) Add some documentation on the format matched by apr_fnmatch.
      [David Glasser <glasser mit.edu>]

Modified: apr/apr/trunk/poll/unix/epoll.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/epoll.c?view=diff&rev=454400&r1=454399&r2=454400
==============================================================================
--- apr/apr/trunk/poll/unix/epoll.c (original)
+++ apr/apr/trunk/poll/unix/epoll.c Mon Oct  9 07:59:23 2006
@@ -105,7 +105,7 @@
         !(flags & APR_POLLSET_NOCOPY) &&
         ((rv = apr_thread_mutex_create(&(*pollset)->ring_lock,
                                        APR_THREAD_MUTEX_DEFAULT,
-                                       p) != APR_SUCCESS))) {
+                                       p)) != APR_SUCCESS)) {
         *pollset = NULL;
         return rv;
     }