[or-cvs] r20084: {torvm} Fix the process wait debug message so it does not fill the l (torvm/trunk/build/win32/src/torvm-w32)
coderman at seul.org
coderman at seul.org
Sat Jul 18 21:53:33 UTC 2009
Author: coderman
Date: 2009-07-18 17:53:32 -0400 (Sat, 18 Jul 2009)
New Revision: 20084
Modified:
torvm/trunk/build/win32/src/torvm-w32/torvm.c
Log:
Fix the process wait debug message so it does not fill the log with the same status every second...
Modified: torvm/trunk/build/win32/src/torvm-w32/torvm.c
===================================================================
--- torvm/trunk/build/win32/src/torvm-w32/torvm.c 2009-07-18 21:51:21 UTC (rev 20083)
+++ torvm/trunk/build/win32/src/torvm-w32/torvm.c 2009-07-18 21:53:32 UTC (rev 20084)
@@ -1844,11 +1844,11 @@
BOOL waitforit (PROCESS_INFORMATION * pi) {
DWORD exitcode;
+ ldebug ("Waiting for process to exit ...");
while ( GetExitCodeProcess(pi->hProcess, &exitcode) && (exitcode == STILL_ACTIVE) ) {
- ldebug ("waiting for process to exit ...");
Sleep (1000);
}
- ldebug ("Done.");
+ ldebug ("Done waiting.");
CloseHandle(pi->hThread);
CloseHandle(pi->hProcess);
More information about the tor-commits
mailing list