8339475: Clean up return code handling for pthread calls in library coding

Reviewed-by: clanger, jwaters
This commit is contained in:
Matthias Baesken 2024-09-27 07:27:29 +00:00
parent 85dba47925
commit 2a2ecc994e
4 changed files with 16 additions and 14 deletions

View file

@ -243,13 +243,7 @@ JLI_ReportErrorMessage(const char* fmt, ...) {
JNIEXPORT void JNICALL
JLI_ReportErrorMessageSys(const char* fmt, ...) {
va_list vl;
char *emsg;
/*
* TODO: its safer to use strerror_r but is not available on
* Solaris 8. Until then....
*/
emsg = strerror(errno);
char *emsg = strerror(errno);
if (emsg != NULL) {
fprintf(stderr, "%s\n", emsg);
}