From 581b13aeddf4d77bb1a01262f594503416e81b85 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 24 Jan 2021 15:53:35 +0000 Subject: [PATCH] found a bug upon VM abortion. yet to fix it --- lib/exec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/exec.c b/lib/exec.c index f22c887..33574ee 100644 --- a/lib/exec.c +++ b/lib/exec.c @@ -2585,7 +2585,11 @@ static int execute (hcl_t* hcl) while (1) { /* stop requested or no more runnable process */ - if (hcl->abort_req || (!hcl->no_proc_switch && switch_process_if_needed(hcl) == 0)) break; + if (hcl->abort_req || (!hcl->no_proc_switch && switch_process_if_needed(hcl) == 0)) + { +/* TODO: if aborting, ensure to terminate all ongoing processes */ + break; + } if (HCL_UNLIKELY(hcl->ip >= HCL_FUNCTION_GET_CODE_SIZE(hcl->active_function))) {