diff options
author | Matt Caswell <matt@openssl.org> | 2016-06-16 16:01:58 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-06-16 16:21:05 +0100 |
commit | c144b4edda9177ab42c0fa94977098763074f912 (patch) | |
tree | f0caf81953e387b24af7b99f19162af1f5160b01 /apps | |
parent | d9e6d7716425593751c34e71b001f68693480fe2 (diff) | |
download | openssl-c144b4edda9177ab42c0fa94977098763074f912.tar.gz |
Revert "RT4526: Call TerminateProcess, not ExitProcess"
This reverts commit 75f90688fb2dec0f897cad8be8b92be725c5016b.
TerminateProcess is asynchronous, so the code as written in the above
commit is not correct (and doesn't even compile at the moment). It is
also probably not needed in the speed case. Reverting in order to figure
out the correct solution.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/speed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/speed.c b/apps/speed.c index a37c9b547d..95adcc19cc 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -332,7 +332,7 @@ static double Time_F(int s) if (thr == NULL) { DWORD ret = GetLastError(); BIO_printf(bio_err, "unable to CreateThread (%d)", ret); - TerminateProcess(GetCurrentProcess(), err); + ExitProcess(ret); } CloseHandle(thr); /* detach the thread */ while (!schlock) |