diff options
author | Alexander Gluzsky <sss123next@list.ru> | 2013-03-02 19:40:02 +0000 |
---|---|---|
committer | Alexander Gluzsky <sss123next@list.ru> | 2013-03-02 19:40:02 +0000 |
commit | f71d09a473a8bcb7dd75afa7fc56554df1d827ad (patch) | |
tree | 296bd74739e0320f58ca47f7b26e5d0c11e567d6 /plugins/New_GPG/src/gpg_wrapper.cpp | |
parent | 260ec979bf45846e404d6c1ba4792894f34ec521 (diff) |
gpg process handling fixes (not finished)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3854 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/New_GPG/src/gpg_wrapper.cpp')
-rwxr-xr-x | plugins/New_GPG/src/gpg_wrapper.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/New_GPG/src/gpg_wrapper.cpp b/plugins/New_GPG/src/gpg_wrapper.cpp index a031912b4d..598537a2ca 100755 --- a/plugins/New_GPG/src/gpg_wrapper.cpp +++ b/plugins/New_GPG/src/gpg_wrapper.cpp @@ -82,9 +82,6 @@ pxResult pxExecute(std::vector<std::wstring> &aargv, string *aoutput, LPDWORD ae _child = &c; delete [] mir_path; - auto ec = wait_for_exit(*_child); - *aexitcode = ec; - _child = nullptr; } @@ -106,7 +103,7 @@ pxResult pxExecute(std::vector<std::wstring> &aargv, string *aoutput, LPDWORD ae debuglog<<std::string(time_str()+": failed to read from stream with error: " + e.what() + "\n\tSuccesfully read : " + *aoutput); } - file_descriptor_source source2(pout.source, close_handle); + file_descriptor_source source2(perr.source, close_handle); stream<file_descriptor_source> is2(source2); @@ -129,6 +126,10 @@ pxResult pxExecute(std::vector<std::wstring> &aargv, string *aoutput, LPDWORD ae if(bDebugLog) debuglog<<std::string(time_str()+": gpg out: "+*aoutput); +// auto ec = wait_for_exit(*_child); + *aexitcode = 0; + _child = nullptr; + if(*aexitcode) { |