From cb47ab15ec33d1a8d924d084996bebe78609baa8 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 15 Jul 2020 16:22:49 +0200 Subject: [PATCH] LibIPC: Tweak a misleading perror() If we get an error from recv(), let's blame "recv" instead of "read". --- Libraries/LibIPC/ServerConnection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibIPC/ServerConnection.h b/Libraries/LibIPC/ServerConnection.h index 931c02f5ad..c86968d3a9 100644 --- a/Libraries/LibIPC/ServerConnection.h +++ b/Libraries/LibIPC/ServerConnection.h @@ -141,7 +141,7 @@ private: if (nread < 0) { if (errno == EAGAIN) break; - perror("read"); + perror("recv"); exit(1); return false; }