clean up stepping test, and remove switch for overriding crash dump path

This commit is contained in:
Nikita Smith authored and Ryan Fleury committed 2026-06-02 12:09:59 -07:00
1 parent fbdfeea8e6
commit d7161ea6e6
6 files changed
+29 -18

No files matched your search

+9
View File
@@ -929,6 +929,15 @@ t_entry_point(CmdLine *cmdline)
if (!cmd_line_has_flag(cmdline, str8_lit("print_stdout")) && IsDebuggerPresent()) {
g_redirect_stdout = 0;
}
// automatically close child processes on exit
{
HANDLE job_handle = CreateJobObjectA(0, 0);
AssertAlways(job_handle != 0);
JOBOBJECT_EXTENDED_LIMIT_INFORMATION job_info = { .BasicLimitInformation.LimitFlags = JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE };
AssertAlways(SetInformationJobObject(job_handle, JobObjectExtendedLimitInformation, &job_info, sizeof(job_info)));
AssertAlways(AssignProcessToJobObject(job_handle, GetCurrentProcess()));
}
#endif
// Handle -out