… | |
… | |
598 | backend will be skipped during initialisation. |
598 | backend will be skipped during initialisation. |
599 | |
599 | |
600 | Most problematic in practise, however, is that not all file descriptors |
600 | Most problematic in practise, however, is that not all file descriptors |
601 | work with it. For example, in linux 5.1, tcp sockets, pipes, event fds, |
601 | work with it. For example, in linux 5.1, tcp sockets, pipes, event fds, |
602 | files, F</dev/null> and a few others are supported, but ttys do not work |
602 | files, F</dev/null> and a few others are supported, but ttys do not work |
603 | (probably because of a bug), so this is not (yet?) a generic event polling |
603 | properly (a known bug that the kernel developers don't care about, see |
604 | interface. |
604 | L<https://lore.kernel.org/patchwork/patch/1047453/>), so this is not |
|
|
605 | (yet?) a generic event polling interface. |
605 | |
606 | |
606 | To work around this latter problem, the current version of libev uses |
607 | To work around this latter problem, the current version of libev uses |
607 | epoll as a fallback for file deescriptor types that do not work. Epoll |
608 | epoll as a fallback for file deescriptor types that do not work. Epoll |
608 | is used in, kind of, slow mode that hopefully avoids most of its design |
609 | is used in, kind of, slow mode that hopefully avoids most of its design |
609 | problems and requires 1-3 extra syscalls per active fd every iteration. |
610 | problems and requires 1-3 extra syscalls per active fd every iteration. |