1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:27:35 +00:00

LibIPC: Tweak a misleading perror()

If we get an error from recv(), let's blame "recv" instead of "read".
This commit is contained in:
Andreas Kling 2020-07-15 16:22:49 +02:00
parent 6e0af349a2
commit cb47ab15ec

View file

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