Explorar el Código

LibIPC: Tweak a misleading perror()

If we get an error from recv(), let's blame "recv" instead of "read".
Andreas Kling hace 5 años
padre
commit
cb47ab15ec
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
             }