** Summary changed: - select or poll on an epoll FD is broken + select or poll on an epoll FD containing PTYs is broken
** Description changed: Binary package hint: linux-image-2.6.17-7-generic - testcase at http://xzrq.net/epollfd.c -- compile, run under strace - Broken: + testcase at http://xzrq.net/epollfd.c -- compile, run under strace in an xterm or a virtual console (it uses FD 0) + Broken, PTYs select(4, [3], NULL, NULL, NULL) = 1 (in [3]) poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1 epoll_wait(3, - Working: + Working, virtual consoles, sockets, pipes: select(4, [3], NULL, NULL, NULL - - When I pass an epoll FD to select (or poll), it is reported as readable - iff there is at least one file descriptor in the epoll set. This is - wrong -- select should block in the same way as epoll_wait does. It - _does_ work properly on 2.7.17.13 downloaded from kernel.org. -- select or poll on an epoll FD containing PTYs is broken https://launchpad.net/bugs/59831 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs