Skip to content

Commit 0bd828b

Browse files
Josh Petersonjoncham
authored andcommitted
Move the exit code setting back after try_shutdown
This reverts part of 78cc586d935f2009058602f2bd9adedca1442442, now that `mono_runtime_try_shutdown` does not actually shut down, but instead does nothing with IL2CPP.
1 parent 894596a commit 0bd828b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mono/mini/debugger-agent.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8750,11 +8750,11 @@ vm_commands (int command, int id, guint8 *p, guint8 *end, Buffer *buf)
87508750
while (suspend_count > 0)
87518751
resume_vm ();
87528752

8753-
mono_environment_exitcode_set (exit_code);
8754-
87558753
if (!mono_runtime_try_shutdown ())
87568754
break;
87578755

8756+
mono_environment_exitcode_set (exit_code);
8757+
87588758
/* Suspend all managed threads since the runtime is going away */
87598759
DEBUG_PRINTF (1, "Suspending all threads...\n");
87608760
mono_thread_suspend_all_other_threads ();

0 commit comments

Comments
 (0)