diff options
Diffstat (limited to 'agent/tcf/services/processes.c')
-rw-r--r-- | agent/tcf/services/processes.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/agent/tcf/services/processes.c b/agent/tcf/services/processes.c index d0da6377..0f9c1f85 100644 --- a/agent/tcf/services/processes.c +++ b/agent/tcf/services/processes.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2014 Wind River Systems, Inc. and others. + * Copyright (c) 2007, 2017 Wind River Systems, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v1.0 which accompany this distribution. @@ -1102,11 +1102,11 @@ static int start_process_imp(Channel * c, char ** envp, const char * dir, const hi = (SYSTEM_HANDLE_INFORMATION *)tmp_realloc(hi, size); } if (status == 0) { - ULONG i; + ULONG l; DWORD id = GetCurrentProcessId(); - for (i = 0; i < hi->Count; i++) { - if (hi->Handles[i].ProcessId != id) continue; - SetHandleInformation((HANDLE)(uintptr_t)hi->Handles[i].Handle, HANDLE_FLAG_INHERIT, FALSE); + for (l = 0; l < hi->Count; l++) { + if (hi->Handles[l].ProcessId != id) continue; + SetHandleInformation((HANDLE)(uintptr_t)hi->Handles[l].Handle, HANDLE_FLAG_INHERIT, FALSE); } } else { |