apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r933271 - /apr/apr/trunk/poll/unix/pollset.c
Date Mon, 12 Apr 2010 15:18:11 GMT
Author: trawick
Date: Mon Apr 12 15:18:09 2010
New Revision: 933271

URL: http://svn.apache.org/viewvc?rev=933271&view=rev
Log:
apr_pollset_create_ex(): Trap errors from pollset providers.

PR: 49094
Submitted by: Sami Tolvanen <sami.tolvanen mywot.com>
Reviewed by: trawick

Modified:
    apr/apr/trunk/poll/unix/pollset.c

Modified: apr/apr/trunk/poll/unix/pollset.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/pollset.c?rev=933271&r1=933270&r2=933271&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/pollset.c (original)
+++ apr/apr/trunk/poll/unix/pollset.c Mon Apr 12 15:18:09 2010
@@ -152,6 +152,9 @@ APR_DECLARE(apr_status_t) apr_pollset_cr
         }
         pollset->provider = provider;
     }
+    else if (rv != APR_SUCCESS) {
+        return rv;
+    }
     if (flags & APR_POLLSET_WAKEABLE) {
         /* Create wakeup pipe */
         if ((rv = apr_poll_create_wakeup_pipe(pollset->pool, &pollset->wakeup_pfd,



Mime
View raw message