Applied kill patch (proper return value testing).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -203,6 +203,9 @@ void wxMilliSleep(unsigned long milliseconds)
|
|||||||
int wxKill(long pid, wxSignal sig, wxKillError *rc)
|
int wxKill(long pid, wxSignal sig, wxKillError *rc)
|
||||||
{
|
{
|
||||||
int err = kill((pid_t)pid, (int)sig);
|
int err = kill((pid_t)pid, (int)sig);
|
||||||
|
if ( !err )
|
||||||
|
*rc = wxKILL_OK;
|
||||||
|
else
|
||||||
if ( rc )
|
if ( rc )
|
||||||
{
|
{
|
||||||
switch ( errno )
|
switch ( errno )
|
||||||
|
Reference in New Issue
Block a user