aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-01-08 02:37:57 +0000
committerDave Barach <openvpp@barachs.net>2020-01-08 15:31:37 +0000
commite4a08c1f3bf58670ff94382b2821518ad954a854 (patch)
treeb403b7fe1c8a8b8c8dbe278c51d13fce8eada775
parentb2e73b1dcb8e9eb3bf74a96fff20a9b27f7e6d73 (diff)
svm: fix eventfd signal write error check
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I706c8642ca0877430a42cc0ca5bc61a45428fc98
-rw-r--r--src/svm/queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/svm/queue.c b/src/svm/queue.c
index 4d37a5f7810..8d70dda61a3 100644
--- a/src/svm/queue.c
+++ b/src/svm/queue.c
@@ -125,8 +125,8 @@ svm_queue_send_signal_inline (svm_queue_t * q, u8 is_prod)
ASSERT (q->consumer_evtfd > 0 && q->producer_evtfd > 0);
fd = is_prod ? q->producer_evtfd : q->consumer_evtfd;
rv = write (fd, &data, sizeof (data));
- if (PREDICT_FALSE (rv))
- clib_unix_warning ("signal write returned %d", rv);
+ if (PREDICT_FALSE (rv < 0))
+ clib_unix_warning ("signal write on %d returned %d", fd, rv);
}
}