From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatoly Burakov Subject: [PATCH v2 4/5] eal: fix handling of errno values in IPC Date: Fri, 2 Mar 2018 08:41:36 +0000 Message-ID: <0d0dcde811bab0b02a1d64d0bdd826624f020f0f.1519940460.git.anatoly.burakov@intel.com> References: <2c7afdce0160171947afa94fb29ac97f619b2f87.1519940460.git.anatoly.burakov@intel.com> Cc: jianfeng.tan@intel.com To: dev@dpdk.org Return-path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 6754A5F16 for ; Fri, 2 Mar 2018 09:41:40 +0100 (CET) In-Reply-To: <2c7afdce0160171947afa94fb29ac97f619b2f87.1519940460.git.anatoly.burakov@intel.com> In-Reply-To: <53373b6d98cc54581eff8fecd277ebca077e589e.1519311106.git.anatoly.burakov@intel.com> References: <53373b6d98cc54581eff8fecd277ebca077e589e.1519311106.git.anatoly.burakov@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fixes: bacaa2754017 ("eal: add channel for multi-process communication") Cc: jianfeng.tan@intel.com Signed-off-by: Anatoly Burakov Acked-by: Jianfeng Tan --- Notes: v2: no changes lib/librte_eal/common/eal_common_proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/common/eal_common_proc.c b/lib/librte_eal/common/eal_common_proc.c index 2dddcaf..3a1088e 100644 --- a/lib/librte_eal/common/eal_common_proc.c +++ b/lib/librte_eal/common/eal_common_proc.c @@ -444,13 +444,13 @@ send_msg(const char *dst_path, struct rte_mp_msg *msg, int type) if (snd < 0) { rte_errno = errno; /* Check if it caused by peer process exits */ - if (errno == -ECONNREFUSED) { + if (errno == ECONNREFUSED) { /* We don't unlink the primary's socket here */ if (rte_eal_process_type() == RTE_PROC_PRIMARY) unlink_socket_by_path(dst_path); return 0; } - if (errno == -ENOBUFS) { + if (errno == ENOBUFS) { RTE_LOG(ERR, EAL, "Peer cannot receive message %s\n", dst_path); return 0; -- 2.7.4