Skip to content
Snippets Groups Projects
Commit 7bec8d1c authored by Liam's avatar Liam
Browse files

internal_network: log error on interrupt pipe read failure

parent 531572b4
No related branches found
No related tags found
No related merge requests found
...@@ -201,7 +201,10 @@ void InterruptSocketOperations() { ...@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment