aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index d7da9b57af..dec8d4f499 100644
--- a/vl.c
+++ b/vl.c
@@ -7831,8 +7831,10 @@ static int main_loop(void)
timeout = 0;
}
} else {
- if (shutdown_requested)
+ if (shutdown_requested) {
+ ret = EXCP_INTERRUPT;
break;
+ }
timeout = 10;
}
#ifdef CONFIG_PROFILER