* kill.cc (forcekill): Use dwProcessId when opening a process, not the Cygwin
pid.
This commit is contained in:
parent
8eb72e632c
commit
ee57685985
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue