< prev index next >

src/java.base/linux/classes/sun/nio/ch/EPollPort.java

Print this page
rev 49242 : [mq]: selector-cleanup

*** 1,7 **** /* ! * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 91,101 **** // create socket pair for wakeup mechanism int[] sv = new int[2]; try { socketpair(sv); // register one end with epoll ! epollCtl(epfd, EPOLL_CTL_ADD, sv[0], Net.POLLIN); } catch (IOException x) { close0(epfd); throw x; } this.sp = sv; --- 91,101 ---- // create socket pair for wakeup mechanism int[] sv = new int[2]; try { socketpair(sv); // register one end with epoll ! epollCtl(epfd, EPOLL_CTL_ADD, sv[0], EPOLLIN); } catch (IOException x) { close0(epfd); throw x; } this.sp = sv;
< prev index next >