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:
parent
413055db0f
commit
15b663b4c3
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user