summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-09-08 20:00:07 +0200
committerLiam <byteslice@airmail.cc>2023-09-08 20:00:07 +0200
commit7bec8d1c5bd6df49fea138d907bdd9e5b042ff51 (patch)
treeff7e09e5ea08d713fb8842f488aca328d584138e /src/core
parentinternal_network: cancel pending socket operations on application process termination (diff)
downloadyuzu-7bec8d1c5bd6df49fea138d907bdd9e5b042ff51.tar
yuzu-7bec8d1c5bd6df49fea138d907bdd9e5b042ff51.tar.gz
yuzu-7bec8d1c5bd6df49fea138d907bdd9e5b042ff51.tar.bz2
yuzu-7bec8d1c5bd6df49fea138d907bdd9e5b042ff51.tar.lz
yuzu-7bec8d1c5bd6df49fea138d907bdd9e5b042ff51.tar.xz
yuzu-7bec8d1c5bd6df49fea138d907bdd9e5b042ff51.tar.zst
yuzu-7bec8d1c5bd6df49fea138d907bdd9e5b042ff51.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/internal_network/network.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/internal_network/network.cpp b/src/core/internal_network/network.cpp
index ef5e5d013..a983f23ea 100644
--- a/src/core/internal_network/network.cpp
+++ b/src/core/internal_network/network.cpp
@@ -201,7 +201,10 @@ void InterruptSocketOperations() {
void AcknowledgeInterrupt() {
u8 value = 0;
- read(interrupt_pipe_fd[0], &value, sizeof(value));
+ ssize_t ret = read(interrupt_pipe_fd[0], &value, sizeof(value));
+ if (ret != 1 && errno != EAGAIN && errno != EWOULDBLOCK) {
+ LOG_ERROR(Network, "Failed to acknowledge interrupt on shutdown");
+ }
}
SOCKET GetInterruptSocket() {