From b86dd03abe59b6b410de4da3e44f62e62599c5ce Mon Sep 17 00:00:00 2001 From: Malfurious Date: Tue, 10 Oct 2023 15:21:08 -0400 Subject: 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 --- debugger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3