[0.2.x] fixed : deadlock after !py without args

git-svn-id: https://pykd.svn.codeplex.com/svn@81239 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2012-11-20 16:19:56 +00:00 committed by Mikhail I. Izmestev
parent 44fd2e17cb
commit 5763752e5c

View File

@ -227,7 +227,14 @@ py( PDEBUG_CLIENT4 client, PCSTR args )
} }
if ( argsList.size() == 0 ) if ( argsList.size() == 0 )
{
Py_EndInterpreter( localInterpreter );
PyThreadState_Swap( globalInterpreter );
WindbgGlobalSession::SavePyState();
return S_OK; return S_OK;
}
char **pythonArgs = new char* [ argsList.size() ]; char **pythonArgs = new char* [ argsList.size() ];