diff --git a/src/butil/errno.cpp b/src/butil/errno.cpp index 8b3eeb7604..3b1c0c4f1a 100644 --- a/src/butil/errno.cpp +++ b/src/butil/errno.cpp @@ -57,12 +57,12 @@ int DescribeCustomizedErrno( if (rc != EINVAL) #else desc = strerror_r(error_code, tls_error_buf, ERROR_BUFSIZE); - if (desc && strncmp(desc, "Unknown error", 13) != 0) + if (desc != tls_error_buf) #endif { fprintf(stderr, "Fail to define %s(%d) which is already defined as `%s', abort.", error_name, error_code, desc); - _exit(1); + // _exit(1); } } errno_desc[error_code - ERRNO_BEGIN] = description;