summaryrefslogtreecommitdiffstats
path: root/debugger.c
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-10-10 15:21:08 -0400
committerMalfurious <m@lfurio.us>2024-04-24 13:31:08 -0400
commitb86dd03abe59b6b410de4da3e44f62e62599c5ce (patch)
treeb80b15c03034aeea0376766bc87cc53563138398 /debugger.c
parentbda13f10b17baf1c2543a500f09eaeccc8c2d876 (diff)
downloadmisplays-b86dd03abe59b6b410de4da3e44f62e62599c5ce.tar.gz
misplays-b86dd03abe59b6b410de4da3e44f62e62599c5ce.zip
Don't spin waiting to interrupt zombie process
Targets can get into this state, for example, when receiving a killing signal. Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'debugger.c')
-rw-r--r--debugger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debugger.c b/debugger.c
index fdf74f9..bacd09c 100644
--- a/debugger.c
+++ b/debugger.c
@@ -221,7 +221,7 @@ static void interrupt_all_threads(struct process *proc) {
char state;
do {
state = thread_state(th);
- } while (state != 't' && state != 'D');
+ } while (state != 't' && state != 'D' && state != 'Z');
wait_thread(th);