diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-08-09 08:34:41 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-08-09 08:34:41 +0300 |
commit | 5bc42bd9a3725e30d9ad5bf4d7cb90779237c9c1 (patch) | |
tree | 7f9ca1abd7e6a295a1f7dc846f92e096cbefd1bd /gpg_wrapper.cpp | |
parent | 64c6452c697a05ab0b0d4bbbda167ddc35215397 (diff) |
used dynamic buffer for gpg data (fixes problem with large gpg output)
Diffstat (limited to 'gpg_wrapper.cpp')
-rwxr-xr-x | gpg_wrapper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gpg_wrapper.cpp b/gpg_wrapper.cpp index 410a0d5..3ad3d23 100755 --- a/gpg_wrapper.cpp +++ b/gpg_wrapper.cpp @@ -120,7 +120,7 @@ pxResult pxExecute(wstring *acommandline, char *ainput, string *aoutput, LPDWORD inputpos=ainput; - while (TRUE) + while (true) { if(!pri.hProcess) break; @@ -135,7 +135,7 @@ pxResult pxExecute(wstring *acommandline, char *ainput, string *aoutput, LPDWORD success=WriteFile(writestdin,inputpos,size,&transfered,NULL); inputpos+=transfered; - boost::this_thread::sleep(boost::posix_time::milliseconds(200)); + boost::this_thread::sleep(boost::posix_time::milliseconds(50)); } storeOutput(readstdout,aoutput); |