Browse Source

LibIPC: Tweak a misleading perror()

If we get an error from recv(), let's blame "recv" instead of "read".
Andreas Kling 5 years ago
parent
commit
cb47ab15ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Libraries/LibIPC/ServerConnection.h

+ 1 - 1
Libraries/LibIPC/ServerConnection.h

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