Skip to content

Commit

Permalink
Revert "RT4526: Call TerminateProcess, not ExitProcess"
Browse files Browse the repository at this point in the history
This reverts commit 9c1a9cc.

TerminateProcess is asynchronous, so the code as written in the above
commit is not correct. It is also probably not needed in the speed
case. Reverting in order to figure out the correct solution.

Reviewed-by: Rich Salz <[email protected]>
  • Loading branch information
mattcaswell committed Jun 16, 2016
1 parent b02b574 commit f219a1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/speed.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ static double Time_F(int s)
if (thr == NULL) {
DWORD err = GetLastError();
BIO_printf(bio_err, "unable to CreateThread (%lu)", err);
TerminateProcess(GetCurrentProcess(), err);
ExitProcess(err);
}
while (!schlock)
Sleep(0); /* scheduler spinlock */
Expand Down
2 changes: 1 addition & 1 deletion ms/uplink.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static TCHAR msg[128];
static void unimplemented(void)
{
OPENSSL_showfatal(sizeof(TCHAR) == sizeof(char) ? "%s\n" : "%S\n", msg);
TerminateProcess(GetCurrentProcess(), 1);
ExitProcess(1);
}

void OPENSSL_Uplink(volatile void **table, int index)
Expand Down

0 comments on commit f219a1b

Please sign in to comment.