Author: mturk
Date: Wed Jan 20 12:26:03 2010
New Revision: 901158

URL: http://svn.apache.org/viewvc?rev=901158&view=rev
Log:
Axe revents == 0 debug message. There is nothing wrong with poll except my 
understanding of it :)

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/unix/exec.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/exec.c
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/exec.c?rev=901158&r1=901157&r2=901158&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/exec.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/exec.c Wed Jan 20 
12:26:03 2010
@@ -480,14 +480,9 @@
                     break;
                 }
                 for (i = 0; i < npipes; i++) {
-#if defined (DEBUG)
-                    if (ps[i].revents == 0) {
-                        /* XXX: Seems that event for closed
-                         * descriptor has 0 for revents instead POLLHUP
-                         */
-                        ACR_DEBUG((THROW_FMARK, "Polled %d from %d with zero 
revents!", i, rc));
-                    }
-#endif
+                    /* Loop trough every pollfd and check for the
+                     * returned events.
+                     */
                     if (pipes[PIPE_STDINP_WRS] == ps[i].fd && ps[i].revents) {
                         wr = 0;
                         if (ps[i].revents & POLLOUT) {


Reply via email to