mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibIPC: Don't crash if send()/sendmsg() returns EINTR in TransportSocket
This commit is contained in:
parent
8d054c8899
commit
3c88bedc05
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ ErrorOr<void> TransportSocket::send_message(Core::LocalSocket& socket, ReadonlyB
|
|||
}
|
||||
|
||||
if (maybe_nwritten.is_error()) {
|
||||
if (auto error = maybe_nwritten.release_error(); error.is_errno() && (error.code() == EAGAIN || error.code() == EWOULDBLOCK)) {
|
||||
if (auto error = maybe_nwritten.release_error(); error.is_errno() && (error.code() == EAGAIN || error.code() == EWOULDBLOCK || error.code() == EINTR)) {
|
||||
return {};
|
||||
} else {
|
||||
return error;
|
||||
|
|
Loading…
Add table
Reference in a new issue