We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc16122 commit 6404143Copy full SHA for 6404143
src/bootstrap/job.rs
@@ -123,7 +123,8 @@ pub unsafe fn setup() {
123
// during startup or terminating abnormally). This is important for running tests,
124
// since some of them use abnormal termination by design.
125
// This mode is inherited by all child processes.
126
- SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
+ let mode = SetErrorMode(SEM_NOGPFAULTERRORBOX); // read inherited flags
127
+ SetErrorMode(mode | SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
128
129
// Create a new job object for us to use
130
let job = CreateJobObjectW(0 as *mut _, 0 as *const _);
0 commit comments