diff options
author | Malfurious <m@lfurio.us> | 2023-10-10 11:54:32 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2024-04-24 13:31:08 -0400 |
commit | bda13f10b17baf1c2543a500f09eaeccc8c2d876 (patch) | |
tree | 615e56efcd503f601c55efab71c6304e001fd811 /debugger.c | |
parent | 574d5a2c4f07bed91d9682e4f48e655e88e37498 (diff) | |
download | misplays-bda13f10b17baf1c2543a500f09eaeccc8c2d876.tar.gz misplays-bda13f10b17baf1c2543a500f09eaeccc8c2d876.zip |
Allow termination and exec events to propagate immediately
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'debugger.c')
-rw-r--r-- | debugger.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -286,8 +286,6 @@ static void resume_threads(struct process *proc) { static int wait_thread(struct thread *th) { if (th->id <= 0) { return -1; - } else if (th->stopped) { - return 1; } int status; @@ -536,7 +534,7 @@ void dbg_sync(struct process *proc) { struct list *threads = &proc->threads; for (struct thread *th = threads->head; th != threads->end; th = th->next) { if (th->id > 0) { - if (!th->stopped && wait_thread(th)) { + if (/*!th->stopped &&*/ wait_thread(th)) { acted = th; } else if (th->stopped && th->doing) { acted = th; |