mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
internal_network: log error on interrupt pipe read failure
This commit is contained in:
parent
531572b411
commit
7bec8d1c5b
1 changed files with 4 additions and 1 deletions
|
@ -201,7 +201,10 @@ void InterruptSocketOperations() {
|
||||||
|
|
||||||
void AcknowledgeInterrupt() {
|
void AcknowledgeInterrupt() {
|
||||||
u8 value = 0;
|
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() {
|
SOCKET GetInterruptSocket() {
|
||||||
|
|
Loading…
Reference in a new issue