[systemd-devel] Bug in source_io_register?
David Strauss
david at davidstrauss.net
Sun Oct 13 22:24:17 PDT 2013
source_io_register errors out with EEXIST, but that's supposed to be
harmless for epoll [1]:
Q1: What happens if you add the same fd to an epoll_set twice?
A1: You will probably get EEXIST. However, it is possible that two
threads may add the same fd twice. This is a harmless condition.
I assume we should ignore it in the event library?
[1] http://linux.die.net/man/4/epoll
--
David Strauss
| david at davidstrauss.net
| +1 512 577 5827 [mobile]
More information about the systemd-devel
mailing list