3 ms·
> The big problem is; if you have a thread reading from a socket, how can you ever interrupt it if you wish to do so? Poll + an eventfd (or another socket). IM
by spacechild1 3y ago
> The big problem is; if you have a thread reading from a socket, how can you ever interrupt it if you wish to do so?
Poll + an eventfd (or another socket). IMO, signals create more problems than they solve.
- Sesse__ 3y agoWell, that's outlawing blocking I/O. Replacing every blocking I/O call with a poll() loop creates significantly more boilerplate than EINTR does…
- spacechild1 3y ago> Well, that's outlawing blocking I/O Not really. A blocking poll() call on a single socket (+ eventfd) is still blocking I/O.