tree-wide: define and use STRERROR_OR_EOF()
This commit is contained in:
@@ -308,7 +308,7 @@ static void* client1(void *p) {
|
||||
|
||||
errno = 0;
|
||||
if (read(pp[0], &x, 1) <= 0) {
|
||||
log_error("Failed to read from pipe: %s", errno != 0 ? strerror_safe(errno) : "early read");
|
||||
log_error("Failed to read from pipe: %s", STRERROR_OR_EOF(errno));
|
||||
goto finish;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user