bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/36269] New: Bad file exception is thrown in epoll modific


From: wzzhu at cs dot hku dot hk
Subject: [Bug classpath/36269] New: Bad file exception is thrown in epoll modification
Date: 20 May 2008 03:56:03 -0000

At file classpath/native/jni/java-nio/gnu_java_nio_EpollSelectorImpl.c
The following function doesn't handle BADF as done in
Java_gnu_java_nio_EpollSelectorImpl_epoll_1delete().

JNIEXPORT void JNICALL
Java_gnu_java_nio_EpollSelectorImpl_epoll_1modify (JNIEnv *env,
                                                   jclass c
__attribute__((unused)),
                                                   jint efd, jint fd, jint ops)

Suggested fix:
211,212d210
<       else if (ENOENT == errno || EBADF == errno)
<         return; /* fd is closed; it's already removed. */


-- 
           Summary: Bad file exception is thrown in epoll modification
           Product: classpath
           Version: 0.97
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wzzhu at cs dot hku dot hk


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36269





reply via email to

[Prev in Thread] Current Thread [Next in Thread]