mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +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 (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 {};
|
return {};
|
||||||
} else {
|
} else {
|
||||||
return error;
|
return error;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue