0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

ircd::aio: Handle EINTR on the read(); clarify comment.

This commit is contained in:
Jason Volk 2019-01-05 18:16:41 -08:00
parent f382e2641d
commit b0b404b172

View file

@ -673,6 +673,9 @@ noexcept try
handle_events();
break;
case errc::interrupted:
break;
case errc::operation_canceled:
throw ctx::interrupted();
@ -700,7 +703,7 @@ noexcept try
assert(!ctx::current);
// The number of completed requests available in events[]. This syscall
// is restarted on EINTR. After restart, it may or may not find any ready
// is restarted by us on EINTR. After restart, it may or may not find any ready
// events but it never blocks to do so.
const auto count
{