From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f182.google.com (mail-ig0-f182.google.com [209.85.213.182]) by dpdk.org (Postfix) with ESMTP id 364398D9E for ; Tue, 18 Aug 2015 17:54:17 +0200 (CEST) Received: by igui7 with SMTP id i7so83203926igu.0 for ; Tue, 18 Aug 2015 08:54:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=2XD/KgyO63r3MvjYpkz3RGQCfZgragxmZqwQX3tsR+Q=; b=1BCKXKIq4G2n9x8q8yn4WI3/fIbnDz8lY7UoBbJ9UaCE8Z6RjAx6Leaxkp1nsvf87U lyWv17Nfc1/p91aNEE2fGXrG9WwSiJ7CJHNofFpzM8stPSNBOgy2K7JBrZS7+1svQxFz 81qIgGjJp48A/L8Ayy76z9T9IFvaWbl8gunWtPhvOyBVYGX7HjNrStM0dSrfR7TQzc4h pq1DfyAl2Es1OSES6dGXX5C65NphdKSo0WQbxzWEWoNR0Pgy8+bHtykGjztOhYxK+viH 0Tyg/FDe6D3Z6drX6jccXqhwx91wLY8US1e2tHG58SF8mkaD+A27/CqiZX4JeZXvyyKK OSBg== X-Received: by 10.50.122.72 with SMTP id lq8mr17388406igb.78.1439913256640; Tue, 18 Aug 2015 08:54:16 -0700 (PDT) Received: from localhost.localdomain ([23.79.237.14]) by smtp.gmail.com with ESMTPSA id 12sm3388390ioe.40.2015.08.18.08.54.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Aug 2015 08:54:16 -0700 (PDT) From: Robert Sanford X-Google-Original-From: Robert Sanford To: cunming.liang@intel.com, dev@dpdk.org Date: Tue, 18 Aug 2015 11:53:54 -0400 Message-Id: <1439913234-1364-1-git-send-email-rsanford@akamai.com> X-Mailer: git-send-email 1.7.1 Subject: [dpdk-dev] [PATCH] eal/linux: fix rte_epoll_wait X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2015 15:54:17 -0000 Function rte_epoll_wait should return when underlying call to epoll_wait times out. Signed-off-by: Robert Sanford --- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c index 3f87875..25cae6a 100644 --- a/lib/librte_eal/linuxapp/eal/eal_interrupts.c +++ b/lib/librte_eal/linuxapp/eal/eal_interrupts.c @@ -1012,6 +1012,9 @@ rte_epoll_wait(int epfd, struct rte_epoll_event *events, strerror(errno)); rc = -1; break; + } else { + /* rc == 0, epoll_wait timed out */ + break; } } -- 1.7.1