diff mbox series

[v2,4/4] write_notify_msg: silence status client disappearing messages

Message ID 20211209010659.724523-4-dominique.martinet@atmark-techno.com
State Accepted
Headers show
Series [v2,1/4] ipc_notify_receive: add timeout_ms argument | expand

Commit Message

Dominique Martinet Dec. 9, 2021, 1:06 a.m. UTC
There is currently no IPC message to signal we are going to quit, so
there status disappearing messages will always appear and do not bring
useful information.

A better fix would be to add a new message type NOTIFY_STREAM_END or
similar to unregister the stream before closing, but it does not add
much value over what we currently do

Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com>
---
v2: trivial rebase on master

 core/network_thread.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/core/network_thread.c b/core/network_thread.c
index 1b63690a2af5..4dd3ec27ae8f 100644
--- a/core/network_thread.c
+++ b/core/network_thread.c
@@ -141,8 +141,6 @@  static int write_notify_msg(ipc_message *msg, int sockfd)
 			 */
 			if (n == 0) {
 				fprintf(stderr, "Error: A status client is not responding, removing it.\n");
-			} else {
-				fprintf(stderr, "A status client disappeared, removing it: %s\n", strerror(errno));
 			}
 			ret = -1;
 			break;