From 480c0a7deea6c4f00d4bdbd570785299403ebb20 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Thu, 27 Jan 2022 14:23:27 +0100 Subject: [PATCH] base-fiasco: silence recv_and_wait error messages Errors during IPC receive-and-wait can occur at the server side when a client is killed. This condition is not an error from the server's perspective. We used to print a message nevertheless, since the condition is rather exceptional. However, when printed during the test-sequence test, the messages interfere with the pattern matching of the depot_autopilot, flagging the successful test as an error. --- repos/base-fiasco/src/lib/base/ipc.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/repos/base-fiasco/src/lib/base/ipc.cc b/repos/base-fiasco/src/lib/base/ipc.cc index 1fd36c4caf..ada92f9397 100644 --- a/repos/base-fiasco/src/lib/base/ipc.cc +++ b/repos/base-fiasco/src/lib/base/ipc.cc @@ -237,11 +237,8 @@ Genode::Rpc_request Genode::ipc_reply_wait(Reply_capability const &last_caller, * error condition to the user but want to wait for the next proper * incoming message. */ - if (L4_IPC_IS_ERROR(ipc_result)) { - error("ipc_reply_and_wait error ", Hex(L4_IPC_ERROR(ipc_result))); - } else { + if (!L4_IPC_IS_ERROR(ipc_result)) need_to_wait = false; - } } while (need_to_wait) {