On Mon, Oct 21, 2013 at 4:59 AM, David Strauss <da...@davidstrauss.net> wrote: > I've already noticed that it doesn't work so well with multiple processes and > EPOLLIN to do > accept() callbacks (like in systemd-socket-proxyd), but I'm looking for > options there.
Thanks to some helpful advice [1] on Stack Overflow and some man page reading about EPOLLONESHOT + EPOLL_CTL_MOD [2], I've fixed up EPOLLONESHOT support in the event library (including tests) and updated socket-proxyd to use it. There's now a much lower rate of process activation and competition to accept(). [1] http://stackoverflow.com/a/19497265/450218 [2] http://linux.die.net/man/2/epoll_ctl _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel