diff options
author | eutarass | 2010-10-11 20:25:20 +0000 |
---|---|---|
committer | eutarass | 2010-10-11 20:25:20 +0000 |
commit | 584b23f3e4958625a282a34a160ad8ae22608ee9 (patch) | |
tree | 3caf99889a65f046a949334dfac7c7be989c818b | |
parent | 666a45434b7cf889aef0eb62aaec6ac4d60d2372 (diff) | |
download | org.eclipse.tcf.agent-584b23f3e4958625a282a34a160ad8ae22608ee9.tar.gz org.eclipse.tcf.agent-584b23f3e4958625a282a34a160ad8ae22608ee9.tar.xz org.eclipse.tcf.agent-584b23f3e4958625a282a34a160ad8ae22608ee9.zip |
TCF Agent: Got rid of compiler warning: function without return
-rw-r--r-- | framework/waitpid.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/waitpid.c b/framework/waitpid.c index 0ad8cf49..65cb5f63 100644 --- a/framework/waitpid.c +++ b/framework/waitpid.c @@ -57,6 +57,7 @@ typedef struct WaitPIDThread { DWORD thread; HANDLE handles[MAX_HANDLES]; DWORD handle_cnt; + int shutdown; struct WaitPIDThread * next; } WaitPIDThread; @@ -80,7 +81,7 @@ static void waitpid_event(void * args) { static DWORD WINAPI waitpid_thread_func(LPVOID x) { WaitPIDThread * thread = (WaitPIDThread *)x; check_error_win32(WaitForSingleObject(semaphore, INFINITE) != WAIT_FAILED); - for (;;) { + while (!thread->shutdown) { DWORD n = 0; HANDLE arr[MAX_HANDLES]; DWORD cnt = thread->handle_cnt; @@ -96,6 +97,7 @@ static DWORD WINAPI waitpid_thread_func(LPVOID x) { thread->handle_cnt--; } } + return 0; } static void init(void) { |