Browse Source

LibIPC: Tweak a misleading perror()

If we get an error from recv(), let's blame "recv" instead of "read".
Andreas Kling 5 năm trước cách đây
mục cha
commit
cb47ab15ec
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Libraries/LibIPC/ServerConnection.h

+ 1 - 1
Libraries/LibIPC/ServerConnection.h

@@ -141,7 +141,7 @@ private:
             if (nread < 0) {
                 if (errno == EAGAIN)
                     break;
-                perror("read");
+                perror("recv");
                 exit(1);
                 return false;
             }