server: Fix the crashed process exit code when the debugger exits without detaching. Add a conformance test.
diff --git a/server/debugger.c b/server/debugger.c
index ee8ef10..4d0ac3d 100644
--- a/server/debugger.c
+++ b/server/debugger.c
@@ -542,7 +542,7 @@
         if (thread->debug_ctx->kill_on_exit)
         {
             /* kill all debugged processes */
-            kill_debugged_processes( thread, thread->exit_code );
+            kill_debugged_processes( thread, STATUS_DEBUGGER_INACTIVE );
         }
         else
         {