This is an automated email from the ASF dual-hosted git repository.

wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new bb36eb2c Fix not to abort when checking the errorno with unicode 
string (#1142)
bb36eb2c is described below

commit bb36eb2c45e5f853b92474f7fac5aed19a61f680
Author: tobe <[email protected]>
AuthorDate: Tue Sep 13 19:40:06 2022 +0800

    Fix not to abort when checking the errorno with unicode string (#1142)
---
 src/butil/errno.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/butil/errno.cpp b/src/butil/errno.cpp
index 8b3eeb76..9b964e11 100644
--- a/src/butil/errno.cpp
+++ b/src/butil/errno.cpp
@@ -60,9 +60,8 @@ int DescribeCustomizedErrno(
         if (desc && strncmp(desc, "Unknown error", 13) != 0)
 #endif
         {
-            fprintf(stderr, "Fail to define %s(%d) which is already defined as 
`%s', abort.",
+            fprintf(stderr, "WARNING: Fail to define %s(%d) which is already 
defined as `%s'",
                     error_name, error_code, desc);
-            _exit(1);
         }
     }
     errno_desc[error_code - ERRNO_BEGIN] = description;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to