From ee57685985fb60d9d22f5f38f7cfaa14b24df54c Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 18 Mar 2001 02:47:39 +0000 Subject: * kill.cc (forcekill): Use dwProcessId when opening a process, not the Cygwin pid. --- winsup/utils/ChangeLog | 5 +++++ winsup/utils/kill.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'winsup/utils') diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 04e5526..eb5c2a9 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,8 @@ +Sat Mar 17 21:46:06 2001 Christopher Faylor + + * kill.cc (forcekill): Use dwProcessId when opening a process, not the + Cygwin pid. + Mon Mar 5 18:50:00 2001 Corinna Vinschen * getfacl.c: Add copyright hint. diff --git a/winsup/utils/kill.cc b/winsup/utils/kill.cc index c4a805d..1f1067f 100644 --- a/winsup/utils/kill.cc +++ b/winsup/utils/kill.cc @@ -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) -- cgit v1.1