fixed error checking in wxKill

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-04-03 14:32:53 +00:00
parent 413055db0f
commit 15b663b4c3
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ wxKillError wxProcess::Kill(int pid, wxSignal sig)
/* static */
bool wxProcess::Exists(int pid)
{
switch ( wxProcess::Kill(pid, wxSIGNONE) )
switch ( Kill(pid, wxSIGNONE) )
{
case wxKILL_OK:
case wxKILL_ACCESS_DENIED:

View File

@ -155,7 +155,7 @@ int wxKill(long pid, wxSignal sig, wxKillError *rc)
int err = kill((pid_t)pid, (int)sig);
if ( rc )
{
switch ( err )
switch ( errno )
{
case 0:
*rc = wxKILL_OK;