diff options
author | Florin Coras <fcoras@cisco.com> | 2020-01-08 02:37:57 +0000 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2020-08-12 14:37:52 +0000 |
commit | 06f4a811a73864b2d90a7237dd34fcf5605e10d4 (patch) | |
tree | 6e47120ffdfa257307f0bcc0ee940f974186894f /src/svm | |
parent | 756437e6f2b4f9e7c5162ea861d7d446b20623e9 (diff) |
svm: fix eventfd signal write error check
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I706c8642ca0877430a42cc0ca5bc61a45428fc98
(cherry picked from commit e4a08c1f3bf58670ff94382b2821518ad954a854)
Diffstat (limited to 'src/svm')
-rw-r--r-- | src/svm/queue.c | 4 |
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); } } |