From 15b663b4c3ef63658aee62160476e9f3dc8bfb99 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 3 Apr 2002 14:32:53 +0000 Subject: [PATCH] fixed error checking in wxKill git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/process.cpp | 2 +- src/unix/utilsunx.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/process.cpp b/src/common/process.cpp index e57f66688b..05e24ffb20 100644 --- a/src/common/process.cpp +++ b/src/common/process.cpp @@ -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: diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 8d1c888fc7..94ecc08e2d 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -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; -- 2.45.2