From c3dbe76173805174fff4e16a31eb8a7b33ce6117 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Wed, 26 Aug 2020 14:59:06 -0400 Subject: [PATCH] chore: Change panic to assert --- runtime/src/runtime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/src/runtime.c b/runtime/src/runtime.c index e95c2d3..40c27e5 100644 --- a/runtime/src/runtime.c +++ b/runtime/src/runtime.c @@ -162,7 +162,8 @@ listener_thread_main(void *dummy) panic("epoll_wait: %s", strerror(errno)); } - if (descriptor_count == 0) panic("Unexpectedly returned with epoll_wait timeout not set\n"); + /* Assumption: Because epoll_wait is set to not timeout, we should always have descriptors here */ + assert(descriptor_count > 0); /* Capture Start Time to calculate absolute deadline */ uint64_t request_arrival_timestamp = __getcycles();