* kill.cc (forcekill): Use dwProcessId when opening a process, not the Cygwin

pid.
This commit is contained in:
Christopher Faylor 2001-03-18 02:47:39 +00:00
parent 8eb72e632c
commit ee57685985
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sat Mar 17 21:46:06 2001 Christopher Faylor <cgf@cygnus.com>
* kill.cc (forcekill): Use dwProcessId when opening a process, not the
Cygwin pid.
Mon Mar 5 18:50:00 2001 Corinna Vinschen <vinschen@redhat.com>
* getfacl.c: Add copyright hint.

View File

@ -120,7 +120,7 @@ forcekill (int pid, int sig, int wait)
external_pinfo *p = (external_pinfo *) cygwin_internal (CW_GETPINFO_FULL, pid);
if (!p)
return;
HANDLE h = OpenProcess (PROCESS_TERMINATE, FALSE, (DWORD) p->pid);
HANDLE h = OpenProcess (PROCESS_TERMINATE, FALSE, (DWORD) p->dwProcessId);
if (!h)
return;
if (!wait || WaitForSingleObject (h, 200) != WAIT_OBJECT_0)