From b861de29176891657cc96631ddbfb4ea9e114a42 Mon Sep 17 00:00:00 2001 From: Fu Juntang <StrongTiger_001@163.com> Date: 星期一, 30 八月 2021 17:52:23 +0800 Subject: [PATCH] re-structure the communication work flow. --- src/bus_error.cpp | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/bus_error.cpp b/src/bus_error.cpp index 913a771..49244cd 100644 --- a/src/bus_error.cpp +++ b/src/bus_error.cpp @@ -20,7 +20,11 @@ "Send to self error", "Receive from wrong end", "Service stoped", - "Exceed resource limit" + "Exceed resource limit", + "Service not supported", + "Resource busy", + "Resource not provide", + "Invalid parameters" }; @@ -50,6 +54,10 @@ char *buf; /* Make first caller allocate key for thread-specific data */ + if (err == 0) { + err = EBUS_BASE; + } + s = pthread_once(&once, createKey); if (s != 0) err_exit(s, "pthread_once"); -- Gitblit v1.8.0