From: Robert Roebling Date: Wed, 24 Nov 2004 14:38:49 +0000 (+0000) Subject: Applied kill patch (proper return value testing). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a9e003065d7d355f1c5130c8584529bf0dbca635 Applied kill patch (proper return value testing). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 4386411aa4..927b409122 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -203,6 +203,9 @@ void wxMilliSleep(unsigned long milliseconds) int wxKill(long pid, wxSignal sig, wxKillError *rc) { int err = kill((pid_t)pid, (int)sig); + if ( !err ) + *rc = wxKILL_OK; + else if ( rc ) { switch ( errno )