usnic: improve error message
When sendto() fails, it would be helpful to see the errno value.
Этот коммит содержится в:
родитель
c1a6beac8d
Коммит
ab1bbca5b9
@ -300,7 +300,10 @@ static void agent_sendto(int fd, char *buffer, ssize_t numbytes,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
ABORT("Unexpected sendto() error");
|
char *msg;
|
||||||
|
asprintf(&msg, "Unexpected sendto() error: errno=%d (%s)",
|
||||||
|
errno, strerror(errno));
|
||||||
|
ABORT(msg);
|
||||||
/* Will not return */
|
/* Will not return */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user