From 3d9829e6b37867aa231c12771a712538b8d6b3f6 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Thu, 9 Jul 2020 17:22:45 -0400 Subject: [PATCH] chore: clean up get sandbox in minheap preempt --- runtime/src/local_runqueue_minheap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/local_runqueue_minheap.c b/runtime/src/local_runqueue_minheap.c index 40f93bc..337ff24 100644 --- a/runtime/src/local_runqueue_minheap.c +++ b/runtime/src/local_runqueue_minheap.c @@ -135,7 +135,7 @@ local_runqueue_minheap_preempt(ucontext_t *user_context) int return_code = global_request_scheduler_remove(&sandbox_request); // If we were unable to get a sandbox_request, exit - if (return_code == -1 || return_code == -2) goto done; + if (return_code != 0) goto done; debuglog("Thread %lu Preempted %lu for %lu\n", pthread_self(), local_deadline, sandbox_request->absolute_deadline);