epoll empty set check
Brought to you by:
lilyco
When using the epoll I have noticed that my program crashes when the set passed to the epoll is empty. This, for me, it's not a bug. But could be a nice feature insert a check on the set to avoid the raise of an exception but simple return error with errno setted for example EMPTY_SET_ERROR.
I've attached a example that generate this exception in Visual Studio 2013:
Unhandled exception at 0x549AC50C (udt.dll) in UDT_EPOLL.exe: 0xC0000005: Access violation reading location 0x0000000D
I have make a mistake in what I've write. The error happen not when the set is empty but if no socket are added to the ePoll