* kill.cc (forcekill): Silence some compiler warnings.
This commit is contained in:
parent
f6f88b66d2
commit
ef58cd2f44
@ -1,3 +1,7 @@
|
|||||||
|
2003-08-31 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* kill.cc (forcekill): Silence some compiler warnings.
|
||||||
|
|
||||||
2003-08-31 Christopher Faylor <cgf@redhat.com>
|
2003-08-31 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* Makefile.in: Oops. Put the '...' in the right place.
|
* Makefile.in: Oops. Put the '...' in the right place.
|
||||||
|
@ -133,12 +133,13 @@ forcekill (int pid, int sig, int wait)
|
|||||||
HANDLE h = OpenProcess (PROCESS_TERMINATE, FALSE, (DWORD) dwpid);
|
HANDLE h = OpenProcess (PROCESS_TERMINATE, FALSE, (DWORD) dwpid);
|
||||||
if (!h)
|
if (!h)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "couldn't open pid %u\n", dwpid);
|
fprintf (stderr, "couldn't open pid %u\n", (unsigned) dwpid);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!wait || WaitForSingleObject (h, 200) != WAIT_OBJECT_0)
|
if (!wait || WaitForSingleObject (h, 200) != WAIT_OBJECT_0)
|
||||||
if (!TerminateProcess (h, sig << 8))
|
if (!TerminateProcess (h, sig << 8))
|
||||||
fprintf (stderr, "couldn't kill pid %u, %d\n", dwpid, GetLastError ());
|
fprintf (stderr, "couldn't kill pid %u, %u\n", (unsigned) dwpid,
|
||||||
|
(unsigned) GetLastError ());
|
||||||
CloseHandle (h);
|
CloseHandle (h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user