diff options
| author | Connor Sughrue <55301806+cpsughrue@users.noreply.github.com> | 2024-05-21 20:32:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-21 20:32:11 -0400 |
| commit | 203232ffbd80e9f4631213a3876f14dde155a92d (patch) | |
| tree | 5ff2674be3737497c9e6558cc9dd37a8845968f8 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface.cpp | |
| parent | 0170bd5d111f55f45f993a749727ce2815cc0b16 (diff) | |
[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.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions
