Connor Sughrue 203232ffbd
[llvm][Support] ListeningSocket::accept returns operation_canceled if FD is set to -1 (#89479)
If `::poll` returns and `FD` equals -1, then `ListeningSocket::shutdown`
has been called. So, regardless of any other information that could be
gleaned from `FDs.revents` or `PollStatus`, it is appropriate to return
`std::errc::operation_canceled`. `ListeningSocket::shutdown` copies
`FD`'s value to `ObservedFD` then sets `FD` to -1 before canceling
`::poll` by calling `::close(ObservedFD)` and writing to the pipe.
2024-05-21 20:32:11 -04:00
..
2024-04-12 14:33:35 -07:00
2023-06-13 10:47:18 +01:00
2023-05-30 14:12:20 -07:00
2023-12-01 11:28:42 -08:00
2023-07-18 13:36:11 -07:00