From 5763752e5c35893af9df3ee975553bbad2a152e7 Mon Sep 17 00:00:00 2001 From: "SND\\kernelnet_cp" Date: Tue, 20 Nov 2012 16:19:56 +0000 Subject: [PATCH] [0.2.x] fixed : deadlock after !py without args git-svn-id: https://pykd.svn.codeplex.com/svn@81239 9b283d60-5439-405e-af05-b73fd8c4d996 --- pykd/dbgext.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pykd/dbgext.cpp b/pykd/dbgext.cpp index c616d26..233b532 100644 --- a/pykd/dbgext.cpp +++ b/pykd/dbgext.cpp @@ -227,7 +227,14 @@ py( PDEBUG_CLIENT4 client, PCSTR args ) } if ( argsList.size() == 0 ) - return S_OK; + { + Py_EndInterpreter( localInterpreter ); + PyThreadState_Swap( globalInterpreter ); + + WindbgGlobalSession::SavePyState(); + + return S_OK; + } char **pythonArgs = new char* [ argsList.size() ];