jdk/src/solaris/classes/sun/nio/ch/EPollPort.java
changeset 22604 9b394795e216
parent 19607 bee007586d06
child 23010 6dadb192ad81
equal deleted inserted replaced
22603:816588059f9d 22604:9b394795e216
    91         // create socket pair for wakeup mechanism
    91         // create socket pair for wakeup mechanism
    92         int[] sv = new int[2];
    92         int[] sv = new int[2];
    93         try {
    93         try {
    94             socketpair(sv);
    94             socketpair(sv);
    95             // register one end with epoll
    95             // register one end with epoll
    96             epollCtl(epfd, EPOLL_CTL_ADD, sv[0], POLLIN);
    96             epollCtl(epfd, EPOLL_CTL_ADD, sv[0], Net.POLLIN);
    97         } catch (IOException x) {
    97         } catch (IOException x) {
    98             close0(epfd);
    98             close0(epfd);
    99             throw x;
    99             throw x;
   100         }
   100         }
   101         this.sp = sv;
   101         this.sp = sv;